aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/gui/RecipeViewingScreen.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/me/shedaniel/rei/gui/RecipeViewingScreen.java')
-rw-r--r--src/main/java/me/shedaniel/rei/gui/RecipeViewingScreen.java6
1 files changed, 3 insertions, 3 deletions
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());
}