Merge pull request #1118 from SandGrainOne/master

isActive method can give NullPointerException
This commit is contained in:
CovertJaguar 2013-08-14 02:23:50 -07:00
commit 7522478dd3

View file

@ -315,7 +315,12 @@ public class TilePump extends TileBuildCraft implements IMachine, IPowerReceptor
@Override
public boolean isActive() {
BlockIndex next = getNextIndexToPump(false);
return isPumpableFluid(next.x, next.y, next.z);
if (next != null) {
return isPumpableFluid(next.x, next.y, next.z);
}
return false;
}
@Override