diff options
| author | shedaniel <daniel@shedaniel.me> | 2020-07-01 20:22:10 +0800 |
|---|---|---|
| committer | shedaniel <daniel@shedaniel.me> | 2020-07-01 20:22:10 +0800 |
| commit | 98beb62fabe45c72da5ab5a95a0628caaf902ca1 (patch) | |
| tree | 4d7427c79e46d83c168a9808c3f84be804d7b6c3 /src/main/java | |
| parent | 4088278dcd19688abe8f97a730cdd950dfd32192 (diff) | |
| download | RoughlyEnoughItems-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.java | 2 |
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; |
