Skip to content

Commit a00cd85

Browse files
authored
don't render amount text twice in recipe cost tooltip (#1078)
1 parent 4014299 commit a00cd85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xplat/src/main/java/dev/emi/emi/screen/tooltip/RecipeCostTooltipComponent.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public int getWidth(TextRenderer textRenderer) {
9393
@Override
9494
public void drawTooltip(EmiDrawContext context, TooltipRenderData render) {
9595
for (Node node : nodes) {
96-
context.drawStack(node.stack, node.x, node.y);
96+
context.drawStack(node.stack, node.x, node.y, ~EmiIngredient.RENDER_AMOUNT);
9797
EmiRenderHelper.renderAmount(context, node.x, node.y, node.text);
9898
}
9999
}

0 commit comments

Comments
 (0)