Apply unused config value, but keep behavior - looks broken

This commit is contained in:
riking 2014-06-03 18:16:47 -07:00
parent a25bc46dea
commit c4b48df0ee
2 changed files with 3 additions and 1 deletions

View File

@ -83,6 +83,7 @@ public class DisguiseConfig {
setDisguiseEntityExpire(config.getInt("DisguiseEntityExpire")); setDisguiseEntityExpire(config.getInt("DisguiseEntityExpire"));
setDisguiseCloneExpire(config.getInt("DisguiseCloneExpire")); setDisguiseCloneExpire(config.getInt("DisguiseCloneExpire"));
setMaxClonedDisguises(config.getInt("DisguiseCloneSize")); setMaxClonedDisguises(config.getInt("DisguiseCloneSize"));
setUnusedDisguisesRemoved(config.getBoolean("RemoveUnusedDisguises"));
} }
public static boolean isAnimationPacketsEnabled() { public static boolean isAnimationPacketsEnabled() {

View File

@ -105,7 +105,8 @@ public class DisguiseListener implements Listener {
public void onQuit(PlayerQuitEvent event) { public void onQuit(PlayerQuitEvent event) {
if (DisguiseConfig.isUnusedDisguisesRemoved()) { if (DisguiseConfig.isUnusedDisguisesRemoved()) {
for (TargetedDisguise disguise : DisguiseUtilities.getSeenDisguises(event.getPlayer().getName())) { for (TargetedDisguise disguise : DisguiseUtilities.getSeenDisguises(event.getPlayer().getName())) {
disguise.removeDisguise(); // TODO fix
// disguise.removeDisguise();
} }
} }
} }