修复一次发射两发的bug
This commit is contained in:
parent
8029532678
commit
8b635587a4
1 changed files with 3 additions and 3 deletions
|
@ -35,8 +35,8 @@ import net.minecraft.world.phys.Vec3;
|
||||||
import net.neoforged.neoforge.event.EventHooks;
|
import net.neoforged.neoforge.event.EventHooks;
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
import org.jetbrains.annotations.Nullable;
|
import org.jetbrains.annotations.Nullable;
|
||||||
import org.joml.*;
|
|
||||||
import org.joml.Math;
|
import org.joml.Math;
|
||||||
|
import org.joml.*;
|
||||||
import software.bernie.geckolib.animatable.GeoEntity;
|
import software.bernie.geckolib.animatable.GeoEntity;
|
||||||
import software.bernie.geckolib.animatable.instance.AnimatableInstanceCache;
|
import software.bernie.geckolib.animatable.instance.AnimatableInstanceCache;
|
||||||
import software.bernie.geckolib.animation.AnimatableManager;
|
import software.bernie.geckolib.animation.AnimatableManager;
|
||||||
|
@ -183,11 +183,11 @@ public class Type63Entity extends ContainerMobileVehicleEntity implements GeoEnt
|
||||||
if (!player.isCreative()) {
|
if (!player.isCreative()) {
|
||||||
stack.shrink(1);
|
stack.shrink(1);
|
||||||
}
|
}
|
||||||
|
setChanged();
|
||||||
player.swing(InteractionHand.MAIN_HAND);
|
player.swing(InteractionHand.MAIN_HAND);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
setChanged();
|
|
||||||
|
|
||||||
if (stack.is(ModTags.Items.CROWBAR)) {
|
if (stack.is(ModTags.Items.CROWBAR)) {
|
||||||
if (player.isShiftKeyDown()) {
|
if (player.isShiftKeyDown()) {
|
||||||
|
@ -206,7 +206,7 @@ public class Type63Entity extends ContainerMobileVehicleEntity implements GeoEnt
|
||||||
items.set(i, ItemStack.EMPTY);
|
items.set(i, ItemStack.EMPTY);
|
||||||
setChanged();
|
setChanged();
|
||||||
player.swing(InteractionHand.MAIN_HAND);
|
player.swing(InteractionHand.MAIN_HAND);
|
||||||
break;
|
return InteractionResult.SUCCESS;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue