From 56b5933837630348203f428a355ecd846b6e630e Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Tue, 2 Sep 2014 20:32:52 +1200 Subject: [PATCH] Not sure if this will do anything bad. But it means we don't use their names if non-skinned player --- .../disguise/utilities/DisguiseUtilities.java | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/src/me/libraryaddict/disguise/utilities/DisguiseUtilities.java b/src/me/libraryaddict/disguise/utilities/DisguiseUtilities.java index 996ecbe7..b957fb59 100644 --- a/src/me/libraryaddict/disguise/utilities/DisguiseUtilities.java +++ b/src/me/libraryaddict/disguise/utilities/DisguiseUtilities.java @@ -389,15 +389,17 @@ public class DisguiseUtilities { final WrappedGameProfile gameProfile = lookupGameProfile(origName); Bukkit.getScheduler().runTask(libsDisguises, new Runnable() { public void run() { - if (gameProfiles.containsKey(playerName) && gameProfiles.get(playerName) == null) { - gameProfiles.put(playerName, gameProfile); - } - if (runnables.containsKey(playerName)) { - for (Object obj : runnables.remove(playerName)) { - if (obj instanceof Runnable) { - ((Runnable) obj).run(); - } else if (obj instanceof LibsProfileLookup) { - ((LibsProfileLookup) obj).onLookup(gameProfile); + if (!LibVersion.is1_7_6() || !gameProfile.getProperties().isEmpty()) { + if (gameProfiles.containsKey(playerName) && gameProfiles.get(playerName) == null) { + gameProfiles.put(playerName, gameProfile); + } + if (runnables.containsKey(playerName)) { + for (Object obj : runnables.remove(playerName)) { + if (obj instanceof Runnable) { + ((Runnable) obj).run(); + } else if (obj instanceof LibsProfileLookup) { + ((LibsProfileLookup) obj).onLookup(gameProfile); + } } } }