aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/gui/entries/SimpleRecipeEntry.java
diff options
context:
space:
mode:
authorshedaniel <daniel@shedaniel.me>2019-12-21 15:54:06 +0800
committershedaniel <daniel@shedaniel.me>2019-12-21 15:54:06 +0800
commit144f0c0576c1a0ac1204ec5970a133ebc44eaa02 (patch)
tree083913b3ffc1fd4416604b63f67f3ede3d1f1ce8 /src/main/java/me/shedaniel/rei/gui/entries/SimpleRecipeEntry.java
parent2d065ca9272ce28c9d4342cd127184b46881ce2e (diff)
downloadRoughlyEnoughItems-144f0c0576c1a0ac1204ec5970a133ebc44eaa02.tar.gz
RoughlyEnoughItems-144f0c0576c1a0ac1204ec5970a133ebc44eaa02.tar.bz2
RoughlyEnoughItems-144f0c0576c1a0ac1204ec5970a133ebc44eaa02.zip
3.2.28
Diffstat (limited to 'src/main/java/me/shedaniel/rei/gui/entries/SimpleRecipeEntry.java')
-rw-r--r--src/main/java/me/shedaniel/rei/gui/entries/SimpleRecipeEntry.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main/java/me/shedaniel/rei/gui/entries/SimpleRecipeEntry.java b/src/main/java/me/shedaniel/rei/gui/entries/SimpleRecipeEntry.java
index 8404d0244..0906e5a2d 100644
--- a/src/main/java/me/shedaniel/rei/gui/entries/SimpleRecipeEntry.java
+++ b/src/main/java/me/shedaniel/rei/gui/entries/SimpleRecipeEntry.java
@@ -12,7 +12,6 @@ import me.shedaniel.rei.gui.widget.EntryWidget;
import me.shedaniel.rei.gui.widget.QueuedTooltip;
import me.shedaniel.rei.utils.CollectionUtils;
import net.minecraft.client.MinecraftClient;
-import net.minecraft.client.render.DiffuseLighting;
import net.minecraft.util.Identifier;
import net.minecraft.util.Pair;
import net.minecraft.util.math.MathHelper;
@@ -34,7 +33,7 @@ public class SimpleRecipeEntry extends RecipeEntry {
protected SimpleRecipeEntry(List<List<EntryStack>> input, List<EntryStack> output) {
List<Pair<List<EntryStack>, AtomicInteger>> newList = Lists.newArrayList();
- List<Pair<List<EntryStack>, Integer>> a = input.stream().map(stacks -> new Pair<>(stacks, stacks.stream().map(EntryStack::getAmount).max(Integer::compareTo).orElse(1))).collect(Collectors.toList());
+ List<Pair<List<EntryStack>, Integer>> a = CollectionUtils.map(input, stacks -> new Pair<>(stacks, stacks.stream().map(EntryStack::getAmount).max(Integer::compareTo).orElse(1)));
for (Pair<List<EntryStack>, Integer> pair : a) {
Optional<Pair<List<EntryStack>, AtomicInteger>> any = newList.stream().filter(pairr -> equalsList(pair.getLeft(), pairr.getLeft())).findAny();
if (any.isPresent()) {
@@ -95,7 +94,6 @@ public class SimpleRecipeEntry extends RecipeEntry {
}
xx = bounds.x + 4 + 18 * (getItemsPerLine() - 2);
yy = bounds.y + getHeight() / 2 - 8;
- DiffuseLighting.disable();
MinecraftClient.getInstance().getTextureManager().bindTexture(CHEST_GUI_TEXTURE);
blit(xx, yy, 0, 28, 18, 18);
xx += 18;