Fix saving of Gas Generator Gas Tanks.
This commit is contained in:
parent
372705a448
commit
5fefe0068f
1 changed files with 1 additions and 1 deletions
|
@ -281,7 +281,7 @@ public class TileEntityGasGenerator extends TileEntityGenerator implements IGasH
|
|||
@Override
|
||||
public void writeSustainedData(ItemStack itemStack)
|
||||
{
|
||||
if(fuelTank.getGas() != null)
|
||||
if(fuelTank != null)
|
||||
{
|
||||
itemStack.stackTagCompound.setTag("fuelTank", fuelTank.write(new NBTTagCompound()));
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue