From a8f55e6edba13b324fb0c2500d00528d2a2e7fdd Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Sat, 26 Jul 2014 11:21:16 +1200 Subject: [PATCH] Change setSkin on playerDisguise slightly --- .../disguisetypes/PlayerDisguise.java | 20 +++++++++---------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/src/me/libraryaddict/disguise/disguisetypes/PlayerDisguise.java b/src/me/libraryaddict/disguise/disguisetypes/PlayerDisguise.java index e2c1005c..6ec7a763 100644 --- a/src/me/libraryaddict/disguise/disguisetypes/PlayerDisguise.java +++ b/src/me/libraryaddict/disguise/disguisetypes/PlayerDisguise.java @@ -143,17 +143,15 @@ public class PlayerDisguise extends TargetedDisguise { @Deprecated public PlayerDisguise setSkin(String skinToUse) { - if (LibVersion.is1_6()) - return this; - this.skinToUse = skinToUse; - if (skinToUse == null) { - this.currentLookup = null; - this.gameProfile = null; - } else { - if (skinToUse.length() > 16) { - this.skinToUse = skinToUse.substring(0, 16); - } - if (LibVersion.is1_7_6()) { + if (LibVersion.is1_7_6()) { + this.skinToUse = skinToUse; + if (skinToUse == null) { + this.currentLookup = null; + this.gameProfile = null; + } else { + if (skinToUse.length() > 16) { + this.skinToUse = skinToUse.substring(0, 16); + } currentLookup = new LibsProfileLookup() { @Override