mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2024-11-11 09:25:27 +00:00
Always refresh the disguise. Some plugins like to set the entities health.
This commit is contained in:
parent
8f63a6eaa0
commit
fb42ffa097
1 changed files with 2 additions and 5 deletions
|
@ -399,12 +399,9 @@ public abstract class Disguise {
|
|||
DisguiseUtilities.removeSelfDisguise((Player) getEntity());
|
||||
}
|
||||
|
||||
// If the entity is not dead
|
||||
if (getEntity().isValid()) {
|
||||
// Better refresh the entity to undisguise it
|
||||
DisguiseUtilities.refreshTrackers((TargetedDisguise) this);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// Loop through the disguises because it could be used with a unknown entity id.
|
||||
Iterator<UUID> itel = disguises.keySet().iterator();
|
||||
|
|
Loading…
Reference in a new issue