Skip to content

Commit

Permalink
Fix NPE for some (at least Mekanism) pipes connected to unfinished sm…
Browse files Browse the repository at this point in the history
…eltery drains.
  • Loading branch information
Ondra Moravek committed Oct 17, 2014
1 parent 5a5b05d commit 54e11b8
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -72,6 +72,9 @@ public boolean canDrain (ForgeDirection from, Fluid fluid)
{
// 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)
{
Expand Down

0 comments on commit 54e11b8

Please sign in to comment.