aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/gui
diff options
context:
space:
mode:
authorUnknown <shekwancheung0528@gmail.com>2019-01-22 20:11:04 +0800
committerUnknown <shekwancheung0528@gmail.com>2019-01-22 20:11:04 +0800
commit999b71d9da9c4c9dcc251f7be4578819a90d215f (patch)
tree1b73c92fbe9b23af74d16f79973c8c9e9d54b1d5 /src/main/java/me/shedaniel/rei/gui
parentbbb92072372d8ceab79bb86186637af02cae6779 (diff)
downloadRoughlyEnoughItems-2.1.0.13.tar.gz
RoughlyEnoughItems-2.1.0.13.tar.bz2
RoughlyEnoughItems-2.1.0.13.zip
v2.1.0.13v2.1.0.13
Diffstat (limited to 'src/main/java/me/shedaniel/rei/gui')
-rw-r--r--src/main/java/me/shedaniel/rei/gui/widget/RecipeViewingWidget.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/me/shedaniel/rei/gui/widget/RecipeViewingWidget.java b/src/main/java/me/shedaniel/rei/gui/widget/RecipeViewingWidget.java
index 5e6d6225a..f376c2e3e 100644
--- a/src/main/java/me/shedaniel/rei/gui/widget/RecipeViewingWidget.java
+++ b/src/main/java/me/shedaniel/rei/gui/widget/RecipeViewingWidget.java
@@ -67,7 +67,7 @@ public class RecipeViewingWidget extends GuiScreen {
@Override
public boolean keyPressed(int int_1, int int_2, int int_3) {
- if (int_1 == 256 && this.allowCloseWithEscape()) {
+ if ((int_1 == 256 || mc.gameSettings.keyBindInventory.matchesKey(int_1, int_2)) && this.allowCloseWithEscape()) {
Minecraft.getInstance().displayGuiScreen(parent.getContainerGui());
return true;
}