Try avoid disguises refreshing when not needed

This commit is contained in:
libraryaddict 2021-03-05 16:04:25 +13:00
parent 77fa52701f
commit 914a17ba20

View file

@ -932,7 +932,7 @@ public abstract class Disguise {
// If this disguise is active
// Remove the disguise from the current disguises.
if (DisguiseUtilities.removeDisguise((TargetedDisguise) this)) {
if (DisguiseUtilities.removeDisguise((TargetedDisguise) this) && !disguiseBeingReplaced) {
if (getEntity() instanceof Player) {
DisguiseUtilities.removeSelfDisguise(this);
}