Merge branch 'master' into development

This commit is contained in:
Aidan C. Brady 2015-03-16 11:03:07 -04:00
commit 77c68b05bf

View file

@ -324,8 +324,9 @@ public class TileEntityGasGenerator extends TileEntityGenerator implements IGasH
{ {
fuelTank.read(itemStack.stackTagCompound.getCompoundTag("fuelTank")); fuelTank.read(itemStack.stackTagCompound.getCompoundTag("fuelTank"));
boolean isTankEmpty = (fuelTank.getGas() == null);
//Update energy output based on any existing fuel in tank //Update energy output based on any existing fuel in tank
FuelGas fuel = FuelHandler.getFuel(fuelTank.getGas().getGas()); FuelGas fuel = (isTankEmpty) ? null : FuelHandler.getFuel(fuelTank.getGas().getGas());
if(fuel != null) if(fuel != null)
{ {