mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-20 20:22:36 +00:00
Fix smeltery overfilling if it was empty and one block could overfill it. (I'm looking at you there, compressed cobble)
This commit is contained in:
1 parent
81b0922b95
commit
35f098e4b0
1 file changed
+5
-1
@@ -507,8 +507,12 @@ public class SmelteryLogic extends InventoryLogic implements IActiveLogic, IFaci
|
||||
needsUpdate = true;
|
||||
if (moltenMetal.size() == 0)
|
||||
{
|
||||
// does it fit in?
|
||||
if(liquid.amount > this.getCapacity())
|
||||
return false;
|
||||
|
||||
moltenMetal.add(liquid.copy());
|
||||
currentLiquid += liquid.amount;
|
||||
updateCurrentLiquid();
|
||||
return true;
|
||||
}
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user