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:
Bernhard Bonigl committed 2014-10-21 18:18:36 +02:00
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