aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/gui/RecipeViewingScreen.java
diff options
context:
space:
mode:
authorshedaniel <daniel@shedaniel.me>2020-06-06 16:29:32 +0800
committershedaniel <daniel@shedaniel.me>2020-06-06 16:29:32 +0800
commit3802055673e7877d66614791eba6ea0599488c7a (patch)
tree8a26efa9c9cea0c0ee1d00234c04eace52771dae /src/main/java/me/shedaniel/rei/gui/RecipeViewingScreen.java
parentf7be9668e3b9508497e21ff74cc0f2f2e1b5d931 (diff)
downloadRoughlyEnoughItems-3802055673e7877d66614791eba6ea0599488c7a.tar.gz
RoughlyEnoughItems-3802055673e7877d66614791eba6ea0599488c7a.tar.bz2
RoughlyEnoughItems-3802055673e7877d66614791eba6ea0599488c7a.zip
Improved Search
Signed-off-by: shedaniel <daniel@shedaniel.me>
Diffstat (limited to 'src/main/java/me/shedaniel/rei/gui/RecipeViewingScreen.java')
-rw-r--r--src/main/java/me/shedaniel/rei/gui/RecipeViewingScreen.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/me/shedaniel/rei/gui/RecipeViewingScreen.java b/src/main/java/me/shedaniel/rei/gui/RecipeViewingScreen.java
index ed797d601..52efc96c3 100644
--- a/src/main/java/me/shedaniel/rei/gui/RecipeViewingScreen.java
+++ b/src/main/java/me/shedaniel/rei/gui/RecipeViewingScreen.java
@@ -342,10 +342,9 @@ public class RecipeViewingScreen extends Screen implements RecipeScreen {
preWidgets.add(workingStationsBaseWidget = Widgets.createCategoryBase(new Rectangle(xx - 5, yy - 5, 15 + innerWidth * 16, 10 + actualHeight * 16)));
preWidgets.add(Widgets.createSlotBase(new Rectangle(xx - 1, yy - 1, innerWidth * 16 + 2, actualHeight * 16 + 2)));
int index = 0;
- List<Text> list = Collections.singletonList(new TranslatableText("text.rei.working_station").formatted(Formatting.YELLOW));
xx += (innerWidth - 1) * 16;
for (List<EntryStack> workingStation : workingStations) {
- preWidgets.add(new WorkstationSlotWidget(xx, yy, CollectionUtils.map(workingStation, stack -> stack.copy().setting(EntryStack.Settings.TOOLTIP_APPEND_EXTRA, s -> list))));
+ preWidgets.add(new WorkstationSlotWidget(xx, yy, workingStation));
index++;
yy += 16;
if (index >= hh) {