From 77c763a7d8e8f1e532755c520535498340da928d Mon Sep 17 00:00:00 2001 From: 17146 <1714673995@qq.com> Date: Wed, 5 Mar 2025 22:36:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dmortar=20shell=E4=B8=8D?= =?UTF-8?q?=E6=B6=88=E8=80=97=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/atsuishio/superbwarfare/entity/MortarEntity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/atsuishio/superbwarfare/entity/MortarEntity.java b/src/main/java/com/atsuishio/superbwarfare/entity/MortarEntity.java index adc9ef906..f16408ae0 100644 --- a/src/main/java/com/atsuishio/superbwarfare/entity/MortarEntity.java +++ b/src/main/java/com/atsuishio/superbwarfare/entity/MortarEntity.java @@ -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);