Change setSkin on playerDisguise slightly
This commit is contained in:
parent
b9244866fd
commit
a8f55e6edb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user