aboutsummaryrefslogtreecommitdiff
path: root/src/client/java/dev/isxander/yacl
diff options
context:
space:
mode:
authorisXander <xander@isxander.dev>2022-12-25 13:49:23 +0000
committerisXander <xander@isxander.dev>2022-12-25 13:50:41 +0000
commit0a98102cbe6138ac675a3ebe3cbc88602ff350c0 (patch)
treeeb089939a798ac16b1f903bb97678990bce307e5 /src/client/java/dev/isxander/yacl
parent7c78ba96a44854ee3733104b8b22bf5cbfc92c3b (diff)
downloadYetAnotherConfigLib-0a98102cbe6138ac675a3ebe3cbc88602ff350c0.tar.gz
YetAnotherConfigLib-0a98102cbe6138ac675a3ebe3cbc88602ff350c0.tar.bz2
YetAnotherConfigLib-0a98102cbe6138ac675a3ebe3cbc88602ff350c0.zip
make button actions in YACLScreen protected
Diffstat (limited to 'src/client/java/dev/isxander/yacl')
-rw-r--r--src/client/java/dev/isxander/yacl/gui/YACLScreen.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/java/dev/isxander/yacl/gui/YACLScreen.java b/src/client/java/dev/isxander/yacl/gui/YACLScreen.java
index f2bc4e8..07ecfeb 100644
--- a/src/client/java/dev/isxander/yacl/gui/YACLScreen.java
+++ b/src/client/java/dev/isxander/yacl/gui/YACLScreen.java
@@ -131,7 +131,7 @@ public class YACLScreen extends Screen {
}
}
- private void finishOrSave() {
+ protected void finishOrSave() {
saveButtonMessage = null;
if (pendingChanges()) {
@@ -155,7 +155,7 @@ public class YACLScreen extends Screen {
} else close();
}
- private void cancelOrReset() {
+ protected void cancelOrReset() {
if (pendingChanges()) { // if pending changes, button acts as a cancel button
OptionUtils.forEachOptions(config, Option::forgetPendingValue);
close();
@@ -164,7 +164,7 @@ public class YACLScreen extends Screen {
}
}
- private void undo() {
+ protected void undo() {
OptionUtils.forEachOptions(config, Option::forgetPendingValue);
}