mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2024-09-22 00:16:30 +00:00
Always refresh the disguise. Some plugins like to set the entities health.
This commit is contained in:
parent
8f63a6eaa0
commit
fb42ffa097
|
@ -399,11 +399,8 @@ public abstract class Disguise {
|
||||||
DisguiseUtilities.removeSelfDisguise((Player) getEntity());
|
DisguiseUtilities.removeSelfDisguise((Player) getEntity());
|
||||||
}
|
}
|
||||||
|
|
||||||
// If the entity is not dead
|
// Better refresh the entity to undisguise it
|
||||||
if (getEntity().isValid()) {
|
DisguiseUtilities.refreshTrackers((TargetedDisguise) this);
|
||||||
// Better refresh the entity to undisguise it
|
|
||||||
DisguiseUtilities.refreshTrackers((TargetedDisguise) this);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// Loop through the disguises because it could be used with a unknown entity id.
|
// Loop through the disguises because it could be used with a unknown entity id.
|
||||||
|
|
Loading…
Reference in a new issue