aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorshedaniel <daniel@shedaniel.me>2020-07-01 20:22:10 +0800
committershedaniel <daniel@shedaniel.me>2020-07-01 20:22:10 +0800
commit98beb62fabe45c72da5ab5a95a0628caaf902ca1 (patch)
tree4d7427c79e46d83c168a9808c3f84be804d7b6c3 /src/main/java
parent4088278dcd19688abe8f97a730cdd950dfd32192 (diff)
downloadRoughlyEnoughItems-98beb62fabe45c72da5ab5a95a0628caaf902ca1.tar.gz
RoughlyEnoughItems-98beb62fabe45c72da5ab5a95a0628caaf902ca1.tar.bz2
RoughlyEnoughItems-98beb62fabe45c72da5ab5a95a0628caaf902ca1.zip
Fixes REI responding to mouse clicks when it is not opened.
Signed-off-by: shedaniel <daniel@shedaniel.me>
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/me/shedaniel/rei/RoughlyEnoughItemsCore.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/me/shedaniel/rei/RoughlyEnoughItemsCore.java b/src/main/java/me/shedaniel/rei/RoughlyEnoughItemsCore.java
index 70027707a..1ac85319f 100644
--- a/src/main/java/me/shedaniel/rei/RoughlyEnoughItemsCore.java
+++ b/src/main/java/me/shedaniel/rei/RoughlyEnoughItemsCore.java
@@ -363,6 +363,8 @@ public class RoughlyEnoughItemsCore implements ClientModInitializer {
});
ClothClientHooks.SCREEN_MOUSE_RELEASED.register((minecraftClient, screen, v, v1, i) -> {
isLeftModePressed = false;
+ if (shouldReturn(screen))
+ return ActionResult.PASS;
if (ScreenHelper.getOptionalOverlay().isPresent())
if (ScreenHelper.isOverlayVisible() && ScreenHelper.getLastOverlay().mouseReleased(v, v1, i)) {
return ActionResult.SUCCESS;