Skip to content

Commit bd477b5

Browse files
authored
Fix 2 recipe viewer issues (#8079)
1 parent 12c1014 commit bd477b5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/mekanism/client/recipe_viewer/emi/widget/MekanismTankEmiWidget.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public void drawStack(GuiGraphics graphics, int mouseX, int mouseY, float delta)
6464
int y = bounds.y() + 1;
6565
int width = bounds.width() - 2;
6666
int height = bounds.height() - 2;
67-
int desiredHeight = MathUtils.clampToInt(height * (double) stack.getAmount() / capacity);
67+
int desiredHeight = MathUtils.clampToInt(height * (double) ingredient.getAmount() / capacity);
6868
if (desiredHeight < 1) {
6969
desiredHeight = 1;
7070
}

src/main/java/mekanism/client/recipe_viewer/jei/ChemicalStackHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public Optional<ResourceLocation> getTagEquivalent(Collection<STACK> stacks) {
119119
return getRegistry().getTags()
120120
.filter(pair -> {
121121
Named<CHEMICAL> tag = pair.getSecond();
122-
return tag.size() == expected && tag.stream().allMatch(tag::contains);
122+
return tag.size() == expected && tag.stream().allMatch(holder -> values.contains(holder.value()));
123123
}).map(pair -> pair.getFirst().location())
124124
.findFirst();
125125
}

0 commit comments

Comments
 (0)