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; }