Fixes the smeltry temperature texture (#277)

This commit is contained in:
Ranzu authored and GitHub committed 2026-04-29 13:02:08 +02:00
1 parent 611d84923d
commit 98517685e4
1 file changed
+1 -1
@@ -275,7 +275,7 @@ public class SmelteryGui extends ActiveContainerGui {
int slotTemp = logic.getTempForSlot(iter + slotPos * columns) - 20;
int maxTemp = logic.getMeltingPointForSlot(iter + slotPos * columns) - 20;
if (slotTemp > 0 && maxTemp > 0) {
int size = 16 * slotTemp / maxTemp + 1;
int size = Math.max(1, Math.min(16, 16 * slotTemp / maxTemp));
drawTexturedModalRect(
cornerX - xleft + (iter % columns * 22),
cornerY + 8 + (iter / columns * 18) + 16 - size,