修复一个导致崩溃的bug
This commit is contained in:
parent
751bc5c948
commit
61c8c3337c
1 changed files with 1 additions and 0 deletions
|
@ -373,6 +373,7 @@ public class ClickHandler {
|
|||
}
|
||||
|
||||
public static void handleWeaponZoomPress(Player player, ItemStack stack) {
|
||||
if (!(stack.getItem() instanceof GunItem)) return;
|
||||
PacketDistributor.sendToServer(new ZoomMessage(0));
|
||||
|
||||
if (player.getVehicle() instanceof VehicleEntity pVehicle && player.getVehicle() instanceof WeaponVehicleEntity iVehicle && iVehicle.hasWeapon(pVehicle.getSeatIndex(player)) && iVehicle.banHand(player)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue