Fix NPE for some (at least Mekanism) pipes connected to unfinished smeltery drains.

This commit is contained in:
Ondra Moravek committed 2014-10-17 23:54:17 +02:00
1 parent 5a5b05d1c7
commit 54e11b8a47
1 file changed
+3
@@ -72,6 +72,9 @@ public class SmelteryDrainLogic extends MultiServantLogic implements IFluidHandl
{
// Check that the drain is coming from the from the front of the block
// and that the fluid to be drained is in the smeltery.
if(!hasValidMaster())
return false;
boolean containsFluid = fluid == null;
if (fluid != null)
{