aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/gui/RecipeViewingScreen.java
diff options
context:
space:
mode:
authorDanielshe <shekwancheung0528@gmail.com>2019-09-07 14:17:46 +0800
committerDanielshe <shekwancheung0528@gmail.com>2019-09-07 14:17:46 +0800
commit6e2791f101af396f2af3974a86e1e2062c7669e6 (patch)
tree8f19a11f9e5db862746d8b149542952214e28b64 /src/main/java/me/shedaniel/rei/gui/RecipeViewingScreen.java
parentc57cbacf7712028ef225a3167593272c8b633dcb (diff)
downloadRoughlyEnoughItems-6e2791f101af396f2af3974a86e1e2062c7669e6.tar.gz
RoughlyEnoughItems-6e2791f101af396f2af3974a86e1e2062c7669e6.tar.bz2
RoughlyEnoughItems-6e2791f101af396f2af3974a86e1e2062c7669e6.zip
Clean up & stack count function
Diffstat (limited to 'src/main/java/me/shedaniel/rei/gui/RecipeViewingScreen.java')
-rw-r--r--src/main/java/me/shedaniel/rei/gui/RecipeViewingScreen.java7
1 files changed, 1 insertions, 6 deletions
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<String> list = Collections.singletonList(Formatting.YELLOW.toString() + I18n.translate("text.rei.working_station"));
xx += (innerWidth - 1) * 18;
for (List<ItemStack> workingStation : workingStations) {
- preWidgets.add(new SlotWidget(xx, yy, Renderer.fromItemStacks(workingStation), true, true, true) {
- @Override
- protected List<String> 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) {