Merge branch 'master' into development
This commit is contained in:
commit
77c68b05bf
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue