修复一次发射两发的bug

This commit is contained in:
Atsuishio 2025-07-13 23:06:45 +08:00 committed by Light_Quanta
parent 8029532678
commit 8b635587a4
No known key found for this signature in database
GPG key ID: 11A39A1B8C890959

View file

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