Simple null check, fixes #542

This commit is contained in:
libraryaddict 2021-01-26 04:13:53 +13:00
parent 70d3a2050b
commit 8d85d5b256

View File

@ -41,7 +41,7 @@ public class PacketListenerInventory extends PacketAdapter {
final Player player = event.getPlayer();
if (player.getVehicle() != null) {
if (player == null || player.getVehicle() != null) {
return;
}