This commit is contained in:
Modmuss50 2015-12-14 18:13:47 +00:00
parent 236eafd99d
commit 23255bdfff

View file

@ -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);