From c4b48df0eebd15afc5167747b4d18098b5a9be39 Mon Sep 17 00:00:00 2001 From: riking Date: Tue, 3 Jun 2014 18:16:47 -0700 Subject: [PATCH] Apply unused config value, but keep behavior - looks broken --- src/me/libraryaddict/disguise/DisguiseConfig.java | 1 + src/me/libraryaddict/disguise/DisguiseListener.java | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/me/libraryaddict/disguise/DisguiseConfig.java b/src/me/libraryaddict/disguise/DisguiseConfig.java index de821698..b301e73e 100644 --- a/src/me/libraryaddict/disguise/DisguiseConfig.java +++ b/src/me/libraryaddict/disguise/DisguiseConfig.java @@ -83,6 +83,7 @@ public class DisguiseConfig { setDisguiseEntityExpire(config.getInt("DisguiseEntityExpire")); setDisguiseCloneExpire(config.getInt("DisguiseCloneExpire")); setMaxClonedDisguises(config.getInt("DisguiseCloneSize")); + setUnusedDisguisesRemoved(config.getBoolean("RemoveUnusedDisguises")); } public static boolean isAnimationPacketsEnabled() { diff --git a/src/me/libraryaddict/disguise/DisguiseListener.java b/src/me/libraryaddict/disguise/DisguiseListener.java index 4cd5e728..00c9faa0 100644 --- a/src/me/libraryaddict/disguise/DisguiseListener.java +++ b/src/me/libraryaddict/disguise/DisguiseListener.java @@ -105,7 +105,8 @@ public class DisguiseListener implements Listener { public void onQuit(PlayerQuitEvent event) { if (DisguiseConfig.isUnusedDisguisesRemoved()) { for (TargetedDisguise disguise : DisguiseUtilities.getSeenDisguises(event.getPlayer().getName())) { - disguise.removeDisguise(); + // TODO fix + // disguise.removeDisguise(); } } }