mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2025-02-12 03:57:03 +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
|
// If this disguise is active
|
||||||
// Remove the disguise from the current disguises.
|
// Remove the disguise from the current disguises.
|
||||||
if (DisguiseUtilities.removeDisguise((TargetedDisguise) this)) {
|
if (DisguiseUtilities.removeDisguise((TargetedDisguise) this) && !disguiseBeingReplaced) {
|
||||||
if (getEntity() instanceof Player) {
|
if (getEntity() instanceof Player) {
|
||||||
DisguiseUtilities.removeSelfDisguise(this);
|
DisguiseUtilities.removeSelfDisguise(this);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue