Apply unused config value, but keep behavior - looks broken
This commit is contained in:
parent
a25bc46dea
commit
c4b48df0ee
@ -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() {
|
||||||
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user