From 914a17ba202eee0cc78005c78b0fa607a895ffe7 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Fri, 5 Mar 2021 16:04:25 +1300 Subject: [PATCH] Try avoid disguises refreshing when not needed --- .../java/me/libraryaddict/disguise/disguisetypes/Disguise.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/libraryaddict/disguise/disguisetypes/Disguise.java b/src/main/java/me/libraryaddict/disguise/disguisetypes/Disguise.java index 47f8702f..26ac31b4 100644 --- a/src/main/java/me/libraryaddict/disguise/disguisetypes/Disguise.java +++ b/src/main/java/me/libraryaddict/disguise/disguisetypes/Disguise.java @@ -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); }