Merge pull request #1076 from vlad20012/int-overflow-fix
Fixed stored energy integer overflow
This commit is contained in:
commit
3b1f55fcb9
1 changed files with 2 additions and 2 deletions
|
@ -167,8 +167,8 @@ public class BaseMetaTileEntity extends BaseTileEntity implements IGregTechTileE
|
|||
} else {
|
||||
if (aID <= 0) mID = (short) aNBT.getInteger("mID");
|
||||
else mID = aID;
|
||||
mStoredSteam = aNBT.getInteger("mStoredSteam");
|
||||
mStoredEnergy = aNBT.getInteger("mStoredEnergy");
|
||||
mStoredSteam = aNBT.getLong("mStoredSteam");
|
||||
mStoredEnergy = aNBT.getLong("mStoredEnergy");
|
||||
mColor = aNBT.getByte("mColor");
|
||||
mLightValue = aNBT.getByte("mLightValue");
|
||||
mWorkData = aNBT.getByte("mWorkData");
|
||||
|
|
Loading…
Reference in a new issue