diff --git a/src/yugecin/opsudance/ui/OptionsOverlay.java b/src/yugecin/opsudance/ui/OptionsOverlay.java index 0aae9e08..0abaa5bb 100644 --- a/src/yugecin/opsudance/ui/OptionsOverlay.java +++ b/src/yugecin/opsudance/ui/OptionsOverlay.java @@ -429,9 +429,6 @@ public class OptionsOverlay extends OverlayOpsuState { } } - if (UI.getBackButton().contains(x, y)) { - hide(); - } return true; } @@ -476,10 +473,12 @@ public class OptionsOverlay extends OverlayOpsuState { tScrollOffset += tab.options.length * optionHeight; } - if (UI.getBackButton().contains(x, y) && listener != null) { - listener.onLeaveOptionsMenu(); + if (UI.getBackButton().contains(x, y)){ + hide(); + if (listener != null) { + listener.onLeaveOptionsMenu(); + } } - return true; }