Fixes #301
This commit is contained in:
parent
236eafd99d
commit
23255bdfff
1 changed files with 1 additions and 1 deletions
|
@ -145,7 +145,7 @@ public class TileDieselGenerator extends TilePowerAcceptor implements IWrenchabl
|
|||
syncWithAll();
|
||||
}
|
||||
|
||||
if (!tank.isEmpty()) {
|
||||
if (!tank.isEmpty() && tank.getFluidType() != null && FluidPowerManager.fluidPowerValues.containsKey(tank.getFluidType())) {
|
||||
double powerIn = FluidPowerManager.fluidPowerValues.get(tank.getFluidType());
|
||||
if (getFreeSpace() >= powerIn) {
|
||||
addEnergy(powerIn, false);
|
||||
|
|
Loading…
Reference in a new issue