From 6e2791f101af396f2af3974a86e1e2062c7669e6 Mon Sep 17 00:00:00 2001 From: Danielshe Date: Sat, 7 Sep 2019 14:17:46 +0800 Subject: Clean up & stack count function --- src/main/java/me/shedaniel/rei/gui/RecipeViewingScreen.java | 7 +------ 1 file changed, 1 insertion(+), 6 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 30d285e32..ac53cd35a 100644 --- a/src/main/java/me/shedaniel/rei/gui/RecipeViewingScreen.java +++ b/src/main/java/me/shedaniel/rei/gui/RecipeViewingScreen.java @@ -305,12 +305,7 @@ public class RecipeViewingScreen extends Screen { List list = Collections.singletonList(Formatting.YELLOW.toString() + I18n.translate("text.rei.working_station")); xx += (innerWidth - 1) * 18; for (List workingStation : workingStations) { - preWidgets.add(new SlotWidget(xx, yy, Renderer.fromItemStacks(workingStation), true, true, true) { - @Override - protected List getExtraItemToolTips(ItemStack stack) { - return list; - } - }); + preWidgets.add(new SlotWidget(xx, yy, Renderer.fromItemStacks(() -> workingStation, true, stack -> list), true, true, true)); index++; yy += 18; if (index >= hh) { -- cgit