mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-21 20:42:17 +00:00
Hopefully fix the Gas Generator issue for good.
This commit is contained in:
1 parent
63101ade28
commit
d31ebf88eb
2 files changed
+8
-2
No files matched your search
@@ -218,7 +218,10 @@ public class GasTank
|
||||
stored = GasStack.readFromNBT(nbtTags.getCompoundTag("stored"));
|
||||
}
|
||||
|
||||
maxGas = nbtTags.getInteger("maxGas");
|
||||
if(nbtTags.hasKey("maxGas"))
|
||||
{
|
||||
maxGas = nbtTags.getInteger("maxGas");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -290,6 +290,9 @@ public class TileEntityGasGenerator extends TileEntityGenerator implements IGasH
|
||||
@Override
|
||||
public void readSustainedData(ItemStack itemStack)
|
||||
{
|
||||
fuelTank.read(itemStack.stackTagCompound.getCompoundTag("fuelTank"));
|
||||
if(itemStack.stackTagCompound.hasKey("fuelTank"))
|
||||
{
|
||||
fuelTank.read(itemStack.stackTagCompound.getCompoundTag("fuelTank"));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user