mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-09-12 01:48:07 +02:00
Merge pull request #23 from libraryaddict/UUID-Disguises
Always refresh the disguise. Some plugins like to set the entities health
This commit is contained in:
commit
202929573e
@ -399,11 +399,8 @@ 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);
|
||||
}
|
||||
// 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.
|
||||
|
Loading…
Reference in New Issue
Block a user