From aea49bfc43a011772c7121c946a3af4260adba45 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Thu, 29 May 2014 22:10:34 +1200 Subject: [PATCH] Fix a memory leak :( --- src/me/libraryaddict/disguise/utilities/DisguiseUtilities.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/me/libraryaddict/disguise/utilities/DisguiseUtilities.java b/src/me/libraryaddict/disguise/utilities/DisguiseUtilities.java index db507aab..230adc65 100644 --- a/src/me/libraryaddict/disguise/utilities/DisguiseUtilities.java +++ b/src/me/libraryaddict/disguise/utilities/DisguiseUtilities.java @@ -141,6 +141,7 @@ public class DisguiseUtilities { // System.out.print("Cannot set more than one " + TargetType.SHOW_TO_EVERYONE_BUT_THESE_PLAYERS // + " on a entity. Removed the old disguise."); + d.removeDisguise(); disguiseItel.remove(); } }