fix freecam breaking disabling
This commit is contained in:
parent
cbf231eb74
commit
de1b0cb1c4
1 changed files with 2 additions and 1 deletions
|
@ -157,7 +157,6 @@ public abstract class Feature extends ToggleButton implements SetCommand {
|
|||
}
|
||||
}
|
||||
if(f.getType().isEnum()) {
|
||||
//noinspection unchecked
|
||||
subComponents.add(new EnumButton((Class<? extends Enum<?>>) f.getType(), config.value(), settings, config.value()).gate(gate));
|
||||
}
|
||||
}
|
||||
|
@ -210,6 +209,8 @@ public abstract class Feature extends ToggleButton implements SetCommand {
|
|||
}
|
||||
|
||||
public void setEnabledSilent(boolean enable) {
|
||||
if(enabled == enable)
|
||||
return;
|
||||
enabled = enable;
|
||||
updateEnabled();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue