From f8484d1f2bd761cfa475fd30a35084cf1c216838 Mon Sep 17 00:00:00 2001 From: Light_Quanta Date: Mon, 30 Jun 2025 04:09:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=81=E8=AE=B8=E4=BD=BF=E7=94=A8=E6=92=AC?= =?UTF-8?q?=E6=A3=8D=E7=A7=BB=E9=99=A4=E6=A0=87=E9=9D=B6=E5=92=8CDPS?= =?UTF-8?q?=E5=8F=91=E7=94=B5=E6=9C=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/atsuishio/superbwarfare/entity/DPSGeneratorEntity.java | 2 +- .../java/com/atsuishio/superbwarfare/entity/TargetEntity.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/atsuishio/superbwarfare/entity/DPSGeneratorEntity.java b/src/main/java/com/atsuishio/superbwarfare/entity/DPSGeneratorEntity.java index 05651139d..b3db32c8b 100644 --- a/src/main/java/com/atsuishio/superbwarfare/entity/DPSGeneratorEntity.java +++ b/src/main/java/com/atsuishio/superbwarfare/entity/DPSGeneratorEntity.java @@ -161,7 +161,7 @@ public class DPSGeneratorEntity extends LivingEntity implements GeoEntity { @Override public @NotNull InteractionResult interact(Player player, @NotNull InteractionHand hand) { - if (player.getMainHandItem() != ItemStack.EMPTY) { + if (player.getMainHandItem() != ItemStack.EMPTY && player.getMainHandItem().getItem() != ModItems.CROWBAR.get()) { return InteractionResult.PASS; } diff --git a/src/main/java/com/atsuishio/superbwarfare/entity/TargetEntity.java b/src/main/java/com/atsuishio/superbwarfare/entity/TargetEntity.java index 4a39587dc..16e9e327b 100644 --- a/src/main/java/com/atsuishio/superbwarfare/entity/TargetEntity.java +++ b/src/main/java/com/atsuishio/superbwarfare/entity/TargetEntity.java @@ -137,7 +137,7 @@ public class TargetEntity extends LivingEntity implements GeoEntity { @Override public @NotNull InteractionResult interact(Player player, @NotNull InteractionHand hand) { - if (player.getMainHandItem() != ItemStack.EMPTY) { + if (player.getMainHandItem() != ItemStack.EMPTY && player.getMainHandItem().getItem() != ModItems.CROWBAR.get()) { return InteractionResult.PASS; }