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:
commit
eccf88b0ea
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue