Fix Gas Generator item gas tank restoration.
This commit is contained in:
parent
e16a39912e
commit
e3fc694532
2 changed files with 2 additions and 2 deletions
|
@ -84,7 +84,7 @@ public class GasStack
|
|||
GasStack stack = new GasStack();
|
||||
stack.read(nbtTags);
|
||||
|
||||
if(stack.getGas() == null)
|
||||
if(stack.getGas() == null || stack.amount <= 0)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
|
|
@ -290,6 +290,6 @@ public class TileEntityGasGenerator extends TileEntityGenerator implements IGasH
|
|||
@Override
|
||||
public void readSustainedData(ItemStack itemStack)
|
||||
{
|
||||
fuelTank.setGas(GasStack.readFromNBT(itemStack.stackTagCompound.getCompoundTag("fuelTank")));
|
||||
fuelTank.read(itemStack.stackTagCompound.getCompoundTag("fuelTank"));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue