mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 15:18:34 +01:00
Fixed farmer energy display.
This commit is contained in:
parent
80b3d7b64f
commit
ec2606f470
1 changed files with 2 additions and 2 deletions
|
@ -62,7 +62,6 @@ public class TileEntityFarmer extends TileEntityInventoryBase implements IFarmer
|
|||
|
||||
@Override
|
||||
public void writeSyncableNBT(CompoundNBT compound, NBTType type) {
|
||||
super.writeSyncableNBT(compound, type);
|
||||
if (type != NBTType.SAVE_BLOCK) {
|
||||
compound.putInt("WaitTime", this.waitTime);
|
||||
}
|
||||
|
@ -71,11 +70,11 @@ public class TileEntityFarmer extends TileEntityInventoryBase implements IFarmer
|
|||
compound.putInt("CheckY", this.checkY);
|
||||
}
|
||||
this.storage.writeToNBT(compound);
|
||||
super.writeSyncableNBT(compound, type);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void readSyncableNBT(CompoundNBT compound, NBTType type) {
|
||||
super.readSyncableNBT(compound, type);
|
||||
if (type != NBTType.SAVE_BLOCK) {
|
||||
this.waitTime = compound.getInt("WaitTime");
|
||||
}
|
||||
|
@ -84,6 +83,7 @@ public class TileEntityFarmer extends TileEntityInventoryBase implements IFarmer
|
|||
this.checkY = compound.getInt("CheckY");
|
||||
}
|
||||
this.storage.readFromNBT(compound);
|
||||
super.readSyncableNBT(compound, type);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue