mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-13 17:04:24 +00:00
Merge pull request #1649 from LexManos/SmelteryFix
Fix potential bounds exception in Smeltery.
This commit is contained in:
commit
f0752fe33c
1 file changed
+1
-1
@@ -561,7 +561,7 @@ public class SmelteryLogic extends InventoryLogic implements IActiveLogic, IFaci
|
||||
|
||||
private void updateTemperatures ()
|
||||
{
|
||||
for (int i = 0; i < maxBlockCapacity; i++)
|
||||
for (int i = 0; i < maxBlockCapacity && i < meltingTemps.length; i++)
|
||||
{
|
||||
meltingTemps[i] = Smeltery.getLiquifyTemperature(inventory[i]) * 10; // temperatures are *10 for more progress control
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user