From 2570a35b35ec29b6677e318f2bf3d5b6640bf106 Mon Sep 17 00:00:00 2001 From: Unknown Date: Sat, 13 Apr 2019 15:40:23 +0800 Subject: v2.7.3 Bug fixes Fix #56 --- src/main/java/me/shedaniel/rei/gui/RecipeViewingScreen.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main/java/me/shedaniel/rei/gui/RecipeViewingScreen.java') diff --git a/src/main/java/me/shedaniel/rei/gui/RecipeViewingScreen.java b/src/main/java/me/shedaniel/rei/gui/RecipeViewingScreen.java index 4555d5bff..b643e2c51 100644 --- a/src/main/java/me/shedaniel/rei/gui/RecipeViewingScreen.java +++ b/src/main/java/me/shedaniel/rei/gui/RecipeViewingScreen.java @@ -94,8 +94,8 @@ public class RecipeViewingScreen extends Screen { } if (choosePageActivated) return recipeChoosePageWidget.keyPressed(int_1, int_2, int_3); - for(Widget widget : widgets) - if (widget.keyPressed(int_1, int_2, int_3)) + for(Element element : children()) + if (element.keyPressed(int_1, int_2, int_3)) return true; return super.keyPressed(int_1, int_2, int_3); } @@ -314,7 +314,7 @@ public class RecipeViewingScreen extends Screen { if (selectedCategory != null) selectedCategory.drawCategoryBackground(bounds, mouseX, mouseY, delta); else { - new RecipeBaseWidget(bounds).render(); + new CategoryBaseWidget(bounds).render(); fill(bounds.x + 17, bounds.y + 5, bounds.x + bounds.width - 17, bounds.y + 17, SUB_COLOR.getRGB()); fill(bounds.x + 17, bounds.y + 21, bounds.x + bounds.width - 17, bounds.y + 33, SUB_COLOR.getRGB()); } -- cgit