Fixed setSkin not working properly

This commit is contained in:
libraryaddict 2016-12-01 14:34:34 +13:00
parent d58c47542e
commit 2c5055924c

View File

@ -240,7 +240,7 @@ public class PlayerDisguise extends TargetedDisguise {
public PlayerDisguise setSkin(String newSkin) { public PlayerDisguise setSkin(String newSkin) {
if (newSkin != null && newSkin.length() > 50) { if (newSkin != null && newSkin.length() > 50) {
try { try {
setSkin(ReflectionManager.parseGameProfile(newSkin)); return setSkin(ReflectionManager.parseGameProfile(newSkin));
} }
catch (Exception ex) { catch (Exception ex) {
throw new IllegalArgumentException( throw new IllegalArgumentException(