mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2025-02-12 03:57:03 +00:00
Make createDisguise return nothing
This commit is contained in:
parent
91dbd07f2a
commit
01f7d2b911
1 changed files with 2 additions and 3 deletions
|
@ -55,9 +55,9 @@ public abstract class Disguise {
|
||||||
@Override
|
@Override
|
||||||
public abstract Disguise clone();
|
public abstract Disguise clone();
|
||||||
|
|
||||||
protected Disguise createDisguise(DisguiseType newType, boolean doSounds) {
|
protected void createDisguise(DisguiseType newType, boolean doSounds) {
|
||||||
if (getWatcher() != null)
|
if (getWatcher() != null)
|
||||||
return this;
|
return;
|
||||||
// Set the disguise type
|
// Set the disguise type
|
||||||
disguiseType = newType;
|
disguiseType = newType;
|
||||||
// Set the option to replace the sounds
|
// Set the option to replace the sounds
|
||||||
|
@ -269,7 +269,6 @@ public abstract class Disguise {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
return this;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue