diff options
Diffstat (limited to 'src/main/java/io/polyfrost/oneconfig/gui/OneConfigGui.java')
-rw-r--r-- | src/main/java/io/polyfrost/oneconfig/gui/OneConfigGui.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/io/polyfrost/oneconfig/gui/OneConfigGui.java b/src/main/java/io/polyfrost/oneconfig/gui/OneConfigGui.java index 1f7da18..130df7f 100644 --- a/src/main/java/io/polyfrost/oneconfig/gui/OneConfigGui.java +++ b/src/main/java/io/polyfrost/oneconfig/gui/OneConfigGui.java @@ -97,6 +97,7 @@ public class OneConfigGui extends GuiScreen { } public void openPage(@NotNull Page page) { + if(page == currentPage) return; currentPage.finishUpAndClose(); if (prevPage == null) { prevPage = currentPage; |