Merge pull request #1743 from Prototik/builder-energy
Fix read/write nbt in builders
This commit is contained in:
commit
915b9e2baf
1 changed files with 3 additions and 2 deletions
|
@ -139,14 +139,15 @@ public abstract class TileAbstractBuilder extends TileBuildCraft implements ITil
|
|||
public void writeToNBT(NBTTagCompound nbttagcompound) {
|
||||
super.writeToNBT(nbttagcompound);
|
||||
|
||||
mjStored = nbttagcompound.getDouble("mjStored");
|
||||
nbttagcompound.setDouble("mjStored", mjStored);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void readFromNBT(NBTTagCompound nbttagcompound) {
|
||||
super.readFromNBT(nbttagcompound);
|
||||
|
||||
nbttagcompound.setDouble("mjStored", mjStored);
|
||||
mjStored = nbttagcompound.getDouble("mjStored");
|
||||
|
||||
mjPrev = mjStored;
|
||||
mjUnchangedCycles = 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue