diff options
| author | Unknown <shekwancheung0528@gmail.com> | 2019-08-18 18:56:57 +0800 |
|---|---|---|
| committer | Unknown <shekwancheung0528@gmail.com> | 2019-08-18 18:56:57 +0800 |
| commit | d02fc1b8dbccefb88c50e4a8780fb8212960041b (patch) | |
| tree | 0cc0755e6a85d1cfe974c593db97b072f1c5d72a /src/main/java/me/shedaniel/rei/gui/VillagerRecipeViewingScreen.java | |
| parent | d9df40442f9d4ea5277ea4f36f36042073a85f52 (diff) | |
| download | RoughlyEnoughItems-d02fc1b8dbccefb88c50e4a8780fb8212960041b.tar.gz RoughlyEnoughItems-d02fc1b8dbccefb88c50e4a8780fb8212960041b.tar.bz2 RoughlyEnoughItems-d02fc1b8dbccefb88c50e4a8780fb8212960041b.zip | |
Close #136
Diffstat (limited to 'src/main/java/me/shedaniel/rei/gui/VillagerRecipeViewingScreen.java')
| -rw-r--r-- | src/main/java/me/shedaniel/rei/gui/VillagerRecipeViewingScreen.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/me/shedaniel/rei/gui/VillagerRecipeViewingScreen.java b/src/main/java/me/shedaniel/rei/gui/VillagerRecipeViewingScreen.java index a2b0e86d8..2489baf0f 100644 --- a/src/main/java/me/shedaniel/rei/gui/VillagerRecipeViewingScreen.java +++ b/src/main/java/me/shedaniel/rei/gui/VillagerRecipeViewingScreen.java @@ -431,6 +431,12 @@ public class VillagerRecipeViewingScreen extends Screen { for (Element element : children()) if (element.keyPressed(int_1, int_2, int_3)) return true; + if (int_1 == 259) { + if (ScreenHelper.hasLastRecipeScreen()) + minecraft.openScreen(ScreenHelper.getLastRecipeScreen()); + else minecraft.openScreen(ScreenHelper.getLastContainerScreen()); + return true; + } return super.keyPressed(int_1, int_2, int_3); } |
