aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/gui/ContainerScreenOverlay.java
diff options
context:
space:
mode:
authorUnknown <shekwancheung0528@gmail.com>2019-08-17 17:05:59 +0800
committerUnknown <shekwancheung0528@gmail.com>2019-08-17 17:05:59 +0800
commit5c91a6654e697fdadde79508f3ef994936e4b952 (patch)
treec2d47385603b038dedcba893a7242bc4c04bb5b3 /src/main/java/me/shedaniel/rei/gui/ContainerScreenOverlay.java
parentdab398882cd64f6152078f59ba768e4ffd437ba3 (diff)
downloadRoughlyEnoughItems-5c91a6654e697fdadde79508f3ef994936e4b952.tar.gz
RoughlyEnoughItems-5c91a6654e697fdadde79508f3ef994936e4b952.tar.bz2
RoughlyEnoughItems-5c91a6654e697fdadde79508f3ef994936e4b952.zip
Finishing the auto crafting API
Diffstat (limited to 'src/main/java/me/shedaniel/rei/gui/ContainerScreenOverlay.java')
-rw-r--r--src/main/java/me/shedaniel/rei/gui/ContainerScreenOverlay.java10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/main/java/me/shedaniel/rei/gui/ContainerScreenOverlay.java b/src/main/java/me/shedaniel/rei/gui/ContainerScreenOverlay.java
index cf302aa9e..2401083dd 100644
--- a/src/main/java/me/shedaniel/rei/gui/ContainerScreenOverlay.java
+++ b/src/main/java/me/shedaniel/rei/gui/ContainerScreenOverlay.java
@@ -8,7 +8,6 @@ package me.shedaniel.rei.gui;
import com.google.common.collect.Lists;
import com.mojang.blaze3d.platform.GlStateManager;
import me.shedaniel.cloth.api.ClientUtils;
-import me.shedaniel.clothconfig2.api.MouseUtils;
import me.shedaniel.rei.RoughlyEnoughItemsCore;
import me.shedaniel.rei.api.ClientHelper;
import me.shedaniel.rei.api.DisplayHelper;
@@ -500,7 +499,7 @@ public class ContainerScreenOverlay extends Widget {
@Override
public boolean keyPressed(int int_1, int int_2, int int_3) {
- if (ScreenHelper.isOverlayVisible() && isInside(MouseUtils.getMouseLocation()))
+ if (ScreenHelper.isOverlayVisible())
for (Element listener : widgets)
if (listener.keyPressed(int_1, int_2, int_3))
return true;
@@ -532,10 +531,9 @@ public class ContainerScreenOverlay extends Widget {
public boolean charTyped(char char_1, int int_1) {
if (!ScreenHelper.isOverlayVisible())
return false;
- if (isInside(MouseUtils.getMouseLocation()))
- for (Element listener : widgets)
- if (listener.charTyped(char_1, int_1))
- return true;
+ for (Element listener : widgets)
+ if (listener.charTyped(char_1, int_1))
+ return true;
return false;
}