From 0a98102cbe6138ac675a3ebe3cbc88602ff350c0 Mon Sep 17 00:00:00 2001 From: isXander Date: Sun, 25 Dec 2022 13:49:23 +0000 Subject: make button actions in YACLScreen protected --- src/client/java/dev/isxander/yacl/gui/YACLScreen.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/client/java/dev/isxander/yacl') 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); } -- cgit