From e4d71bb6a48280a0143e9f7247fc3e2743e2d74a Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Tue, 17 Dec 2013 00:11:13 +1300 Subject: [PATCH] Check player is online as well. Fixes the errors --- src/me/libraryaddict/disguise/utilities/PacketsManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/me/libraryaddict/disguise/utilities/PacketsManager.java b/src/me/libraryaddict/disguise/utilities/PacketsManager.java index 6dd8f45c..15be1fc6 100644 --- a/src/me/libraryaddict/disguise/utilities/PacketsManager.java +++ b/src/me/libraryaddict/disguise/utilities/PacketsManager.java @@ -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()