aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/gui
diff options
context:
space:
mode:
authorUnknown <shekwancheung0528@gmail.com>2019-01-22 18:53:01 +0800
committerUnknown <shekwancheung0528@gmail.com>2019-01-22 18:53:01 +0800
commit752ce451bad972d7cf241eedcf1cb7d14fa0245b (patch)
tree35a0fe3fbdf9719ee7e02146452e60ba9e9bc4ae /src/main/java/me/shedaniel/rei/gui
parentfa843ff9f67048e4e30e8000f64b330373066e10 (diff)
downloadRoughlyEnoughItems-752ce451bad972d7cf241eedcf1cb7d14fa0245b.tar.gz
RoughlyEnoughItems-752ce451bad972d7cf241eedcf1cb7d14fa0245b.tar.bz2
RoughlyEnoughItems-752ce451bad972d7cf241eedcf1cb7d14fa0245b.zip
v2.1.0.43
Close #12 Adds warn message if player didn't install plugin loader.
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 9e1509880..4640a14e8 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 Gui {
@Override
public boolean keyPressed(int int_1, int int_2, int int_3) {
- if (int_1 == 256 && this.doesEscapeKeyClose()) {
+ if ((int_1 == 256 || this.client.options.keyInventory.matchesKey(int_1, int_2)) && this.doesEscapeKeyClose()) {
MinecraftClient.getInstance().openGui(parent.getContainerGui());
return true;
}