Simple null check, fixes #542
This commit is contained in:
parent
70d3a2050b
commit
8d85d5b256
@ -41,7 +41,7 @@ public class PacketListenerInventory extends PacketAdapter {
|
|||||||
|
|
||||||
final Player player = event.getPlayer();
|
final Player player = event.getPlayer();
|
||||||
|
|
||||||
if (player.getVehicle() != null) {
|
if (player == null || player.getVehicle() != null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user