Skip to content

Commit

Permalink
Fix smeltery overfilling if it was empty and one block could overfill…
Browse files Browse the repository at this point in the history
… it. (I'm looking at you there, compressed cobble)
  • Loading branch information
bonii-xx committed Oct 21, 2014
1 parent 81b0922 commit 35f098e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/java/tconstruct/smeltery/logic/SmelteryLogic.java
Expand Up @@ -507,8 +507,12 @@ boolean addMoltenMetal (FluidStack liquid, boolean first)
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
Expand Down

0 comments on commit 35f098e

Please sign in to comment.