Check player is online as well. Fixes the errors
This commit is contained in:
parent
3e4f581943
commit
e4d71bb6a4
@ -864,7 +864,7 @@ public class PacketsManager {
|
||||
PacketType.Play.Client.WINDOW_CLICK) {
|
||||
@Override
|
||||
public void onPacketReceiving(final PacketEvent event) {
|
||||
if (event.getPlayer().getVehicle() == null) {
|
||||
if (event.getPlayer().isOnline() && event.getPlayer().getVehicle() == null) {
|
||||
Disguise disguise = DisguiseAPI.getDisguise(event.getPlayer(), event.getPlayer());
|
||||
// If player is disguised, views self disguises and has a inventory modifier
|
||||
if (disguise != null && disguise.isSelfDisguiseVisible()
|
||||
|
Loading…
Reference in New Issue
Block a user