mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2025-02-14 04:38:11 +00:00
Make sure there is no errors if someone calls setSkin on 1.6 or earlier
This commit is contained in:
parent
0eba652926
commit
b9244866fd
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue