可能修复C4拆除失败的问题?
This commit is contained in:
parent
83b81b1b46
commit
8749c82572
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ public class Defuser extends Item {
|
|||
).withStyle(ChatFormatting.GREEN), true);
|
||||
}
|
||||
|
||||
if (useTick >= C4Entity.DEFAULT_DEFUSE_PROGRESS) {
|
||||
if (useTick >= C4Entity.DEFAULT_DEFUSE_PROGRESS && pLevel instanceof ServerLevel) {
|
||||
player.stopUsingItem();
|
||||
if (pLevel instanceof ServerLevel serverLevel) {
|
||||
pStack.hurtAndBreak(1, serverLevel, player, p -> {
|
||||
|
|
Loading…
Add table
Reference in a new issue