Make sure there is no errors if someone calls setSkin on 1.6 or earlier

This commit is contained in:
libraryaddict 2014-07-26 11:17:45 +12:00
parent 0eba652926
commit b9244866fd

View File

@ -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;