This commit is contained in:
libraryaddict 2014-04-11 08:00:25 +12:00
parent d20abcb223
commit 8ac42f97c1

View File

@ -305,7 +305,7 @@ public class DisguiseUtilities {
try {
Field field = ReflectionManager.getNmsClass("PlayerConnection").getDeclaredField("processedDisconnect");
field.setAccessible(true);
if (field.getBoolean(ReflectionManager.getNmsClass("EntityPlayer").getField("playerConnection")
if (!field.getBoolean(ReflectionManager.getNmsClass("EntityPlayer").getField("playerConnection")
.get(p.getClass().getDeclaredMethod("getHandle").invoke(p))))
return p.getUniqueId();
} catch (Exception e) {