Fixed setSkin not working properly
This commit is contained in:
parent
d58c47542e
commit
2c5055924c
@ -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(
|
||||||
|
Loading…
Reference in New Issue
Block a user