Merge pull request #1076 from vlad20012/int-overflow-fix

Fixed stored energy integer overflow
This commit is contained in:
Blood-Asp 2017-06-07 09:30:04 +02:00 committed by GitHub
commit 3b1f55fcb9

View file

@ -167,8 +167,8 @@ public class BaseMetaTileEntity extends BaseTileEntity implements IGregTechTileE
} else { } else {
if (aID <= 0) mID = (short) aNBT.getInteger("mID"); if (aID <= 0) mID = (short) aNBT.getInteger("mID");
else mID = aID; else mID = aID;
mStoredSteam = aNBT.getInteger("mStoredSteam"); mStoredSteam = aNBT.getLong("mStoredSteam");
mStoredEnergy = aNBT.getInteger("mStoredEnergy"); mStoredEnergy = aNBT.getLong("mStoredEnergy");
mColor = aNBT.getByte("mColor"); mColor = aNBT.getByte("mColor");
mLightValue = aNBT.getByte("mLightValue"); mLightValue = aNBT.getByte("mLightValue");
mWorkData = aNBT.getByte("mWorkData"); mWorkData = aNBT.getByte("mWorkData");