mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2025-02-21 02:31:59 +01:00
Fix cast
This commit is contained in:
parent
07e8336c1f
commit
a7b72a6e76
@ -887,7 +887,7 @@ public abstract class Disguise {
|
||||
|
||||
// Sometimes someone may set the custom name stuff on the actual player... Normally harmless, until I come along..
|
||||
if (getEntity() instanceof Player && !getWatcher().hasCustomName() && !getWatcher().isUpsideDown() &&
|
||||
!(getWatcher() instanceof SheepWatcher || ((SheepWatcher) getWatcher()).isRainbowWool())) {
|
||||
(!(getWatcher() instanceof SheepWatcher) || !((SheepWatcher) getWatcher()).isRainbowWool())) {
|
||||
getWatcher().setInteralCustomName("");
|
||||
getWatcher().setInternalCustomNameVisible(false);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user