From 8b635587a49fd5a752bdd4e9794d09ffadd99e55 Mon Sep 17 00:00:00 2001 From: Atsuishio <842960157@qq.com> Date: Sun, 13 Jul 2025 23:06:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=80=E6=AC=A1=E5=8F=91?= =?UTF-8?q?=E5=B0=84=E4=B8=A4=E5=8F=91=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../superbwarfare/entity/vehicle/Type63Entity.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/atsuishio/superbwarfare/entity/vehicle/Type63Entity.java b/src/main/java/com/atsuishio/superbwarfare/entity/vehicle/Type63Entity.java index 524c5e97a..c29b91dda 100644 --- a/src/main/java/com/atsuishio/superbwarfare/entity/vehicle/Type63Entity.java +++ b/src/main/java/com/atsuishio/superbwarfare/entity/vehicle/Type63Entity.java @@ -35,8 +35,8 @@ import net.minecraft.world.phys.Vec3; import net.neoforged.neoforge.event.EventHooks; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; -import org.joml.*; import org.joml.Math; +import org.joml.*; import software.bernie.geckolib.animatable.GeoEntity; import software.bernie.geckolib.animatable.instance.AnimatableInstanceCache; import software.bernie.geckolib.animation.AnimatableManager; @@ -183,11 +183,11 @@ public class Type63Entity extends ContainerMobileVehicleEntity implements GeoEnt if (!player.isCreative()) { stack.shrink(1); } + setChanged(); player.swing(InteractionHand.MAIN_HAND); } } } - setChanged(); if (stack.is(ModTags.Items.CROWBAR)) { if (player.isShiftKeyDown()) { @@ -206,7 +206,7 @@ public class Type63Entity extends ContainerMobileVehicleEntity implements GeoEnt items.set(i, ItemStack.EMPTY); setChanged(); player.swing(InteractionHand.MAIN_HAND); - break; + return InteractionResult.SUCCESS; } } }