Fix drains accepting liquids even when the smeltery is full, killing said liquids.

This commit is contained in:
Bernhard Bonigl committed 2014-09-22 17:04:08 +02:00
1 parent 2610428782
commit ff79f7d2da
1 file changed
+2 -9
@@ -26,15 +26,8 @@ public class SmelteryDrainLogic extends MultiServantLogic implements IFluidHandl
{
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
{