mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-09-10 01:28:19 +02:00
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