From 376f18ef95cf0afc5e5e81b35554bf77f0290bb0 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Thu, 3 Apr 2014 02:06:21 +1300 Subject: [PATCH] Maybe something so the disguise can be reused if the entity comes back --- src/me/libraryaddict/disguise/disguisetypes/Disguise.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/me/libraryaddict/disguise/disguisetypes/Disguise.java b/src/me/libraryaddict/disguise/disguisetypes/Disguise.java index e9822304..95bf4037 100644 --- a/src/me/libraryaddict/disguise/disguisetypes/Disguise.java +++ b/src/me/libraryaddict/disguise/disguisetypes/Disguise.java @@ -188,6 +188,10 @@ public abstract class Disguise { if (!getEntity().isValid()) { if (isRemoveWhenInvalid()) { removeDisguise(); + } else { + entity = null; + watcher = getWatcher().clone(disguise); + cancel(); } } else { // If the disguise type is tnt, we need to resend the entity packet else it will turn invisible