mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2025-02-11 19:50:30 +00:00
Maybe something so the disguise can be reused if the entity comes back
This commit is contained in:
parent
167f14bfe8
commit
376f18ef95
1 changed files with 4 additions and 0 deletions
|
@ -188,6 +188,10 @@ public abstract class Disguise {
|
||||||
if (!getEntity().isValid()) {
|
if (!getEntity().isValid()) {
|
||||||
if (isRemoveWhenInvalid()) {
|
if (isRemoveWhenInvalid()) {
|
||||||
removeDisguise();
|
removeDisguise();
|
||||||
|
} else {
|
||||||
|
entity = null;
|
||||||
|
watcher = getWatcher().clone(disguise);
|
||||||
|
cancel();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// If the disguise type is tnt, we need to resend the entity packet else it will turn invisible
|
// If the disguise type is tnt, we need to resend the entity packet else it will turn invisible
|
||||||
|
|
Loading…
Reference in a new issue