quick fix : Multiple occurrences of the same expression

This commit is contained in:
Alexdoru authored and Jason Mitchell committed 2023-01-28 18:02:41 -08:00
1 parent 173eab9a0e
commit aa1b25c8e5
2 files changed
+13 -19

No files matched your search

@@ -258,17 +258,12 @@ public abstract class RecipeHandlerBase extends TemplateRecipeHandler {
double maxV = fluidIcon.getMaxV();
Tessellator tessellator = Tessellator.instance;
final double u = minU + (maxU - minU) * drawWidth / 16F;
final double v = minV + (maxV - minV) * drawHeight / 16F;
tessellator.startDrawingQuads();
tessellator.addVertexWithUV(
drawX, drawY + drawHeight, 0, minU, minV + (maxV - minV) * drawHeight / 16F);
tessellator.addVertexWithUV(
drawX + drawWidth,
drawY + drawHeight,
0,
minU + (maxU - minU) * drawWidth / 16F,
minV + (maxV - minV) * drawHeight / 16F);
tessellator.addVertexWithUV(
drawX + drawWidth, drawY, 0, minU + (maxU - minU) * drawWidth / 16F, minV);
tessellator.addVertexWithUV(drawX, drawY + drawHeight, 0, minU, v);
tessellator.addVertexWithUV(drawX + drawWidth, drawY + drawHeight, 0, u, v);
tessellator.addVertexWithUV(drawX + drawWidth, drawY, 0, u, minV);
tessellator.addVertexWithUV(drawX, drawY, 0, minU, minV);
tessellator.draw();
}