Fix toggle buttons no longer working with GuiElement API
This commit is contained in:
@@ -35,6 +35,11 @@ public class GuiToggleButton extends GuiAdvancedButton {
|
||||
return success;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void performAction() {
|
||||
toggle();
|
||||
}
|
||||
|
||||
public void toggle() {
|
||||
value++;
|
||||
if(value >= values.length) value = 0;
|
||||
@@ -50,5 +55,4 @@ public class GuiToggleButton extends GuiAdvancedButton {
|
||||
this.displayString = baseText+values[value];
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user