Skip to content

Commit

Permalink
Fix drains accepting liquids even when the smeltery is full, killing …
Browse files Browse the repository at this point in the history
…said liquids.
  • Loading branch information
bonii-xx committed Sep 22, 2014
1 parent 2610428 commit ff79f7d
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/main/java/tconstruct/smeltery/logic/SmelteryDrainLogic.java
Expand Up @@ -26,15 +26,8 @@ public int fill (ForgeDirection from, FluidStack resource, boolean doFill)
{
if (hasValidMaster() && resource != null && canFill(from, resource.getFluid()))
{
if (doFill)
{
SmelteryLogic smeltery = (SmelteryLogic) worldObj.getTileEntity(getMasterPosition().x, getMasterPosition().y, getMasterPosition().z);
return smeltery.fill(resource, doFill);
}
else
{
return resource.amount;
}
SmelteryLogic smeltery = (SmelteryLogic) worldObj.getTileEntity(getMasterPosition().x, getMasterPosition().y, getMasterPosition().z);
return smeltery.fill(resource, doFill);
}
else
{
Expand Down

0 comments on commit ff79f7d

Please sign in to comment.