修复mortar shell不消耗的问题
This commit is contained in:
parent
5aef19ba60
commit
77c763a7d8
1 changed files with 1 additions and 1 deletions
|
@ -128,7 +128,7 @@ public class MortarEntity extends VehicleEntity implements GeoEntity, AnimatedEn
|
|||
this.entityData.set(FIRE_TIME, 25);
|
||||
|
||||
if (!player.isCreative()) {
|
||||
player.getInventory().clearOrCountMatchingItems(p -> ModItems.MORTAR_SHELL.get() == p.getItem(), 1, player.inventoryMenu.getCraftSlots());
|
||||
stack.shrink(1);
|
||||
}
|
||||
if (!this.level().isClientSide()) {
|
||||
this.level().playSound(null, this.getX(), this.getY(), this.getZ(), ModSounds.MORTAR_LOAD.get(), SoundSource.PLAYERS, 1f, 1f);
|
||||
|
|
Loading…
Add table
Reference in a new issue