From b9244866fd0dbaa40b29f7d91265c5d9ee252aea Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Sat, 26 Jul 2014 11:17:45 +1200 Subject: [PATCH] Make sure there is no errors if someone calls setSkin on 1.6 or earlier --- src/me/libraryaddict/disguise/disguisetypes/PlayerDisguise.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/me/libraryaddict/disguise/disguisetypes/PlayerDisguise.java b/src/me/libraryaddict/disguise/disguisetypes/PlayerDisguise.java index c41a8911..e2c1005c 100644 --- a/src/me/libraryaddict/disguise/disguisetypes/PlayerDisguise.java +++ b/src/me/libraryaddict/disguise/disguisetypes/PlayerDisguise.java @@ -143,6 +143,8 @@ 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;