Merge pull request #508 from nevercast/fix-npe-engine

Fix some NPEs on TileEngine when it has not be initialized
This commit is contained in:
CovertJaguar 2012-12-14 22:30:47 -08:00
commit eccf88b0ea

View file

@ -444,6 +444,9 @@ public class TileEngine extends TileBuildCraft implements IPowerReceptor, IInven
/* ILIQUIDCONTAINER */
@Override
public int fill(ForgeDirection from, LiquidStack resource, boolean doFill) {
if(engine == null) {
return 0;
}
return engine.fill(from, resource, doFill);
}