mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-22 13:09:53 +00:00
Fixes the smeltry temperature texture (#277)
This commit is contained in:
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,
|
||||
|
||||
Reference in new issue
Block a user