diff options
Diffstat (limited to 'src/main/java/gregtech/api/gui/GT_GUIDialogSelectItem.java')
-rw-r--r-- | src/main/java/gregtech/api/gui/GT_GUIDialogSelectItem.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/main/java/gregtech/api/gui/GT_GUIDialogSelectItem.java b/src/main/java/gregtech/api/gui/GT_GUIDialogSelectItem.java index fed1671484..1f95def197 100644 --- a/src/main/java/gregtech/api/gui/GT_GUIDialogSelectItem.java +++ b/src/main/java/gregtech/api/gui/GT_GUIDialogSelectItem.java @@ -52,7 +52,7 @@ public class GT_GUIDialogSelectItem extends GT_GUIScreen { /** * Open a dialog to select an item from given list. Given callback may be called zero or more times depending on * user action. - * + * * @param header Header text * @param headerItem ItemStack to use as Dialog icon * @param parent open which GUIScreen when this dialog is closed. use null if it has no parent. @@ -105,12 +105,14 @@ public class GT_GUIDialogSelectItem extends GT_GUIScreen { @Override public void buttonClicked(GuiButton button) { switch (button.id) { - case 0: + case 0 -> { setScroll(scroll - 1); return; - case 1: + } + case 1 -> { setScroll(scroll + 1); return; + } } super.buttonClicked(button); } |