mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2025-02-11 19:50:30 +00:00
Try avoid disguises refreshing when not needed
This commit is contained in:
parent
77fa52701f
commit
914a17ba20
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue