Maybe something so the disguise can be reused if the entity comes back

This commit is contained in:
libraryaddict 2014-04-03 02:06:21 +13:00
parent 167f14bfe8
commit 376f18ef95

@ -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