From ec2606f470b5bff6d3d00c4f79affe60e8014b40 Mon Sep 17 00:00:00 2001 From: Flanks255 <32142731+Flanks255@users.noreply.github.com> Date: Tue, 15 Feb 2022 19:41:49 -0600 Subject: [PATCH] Fixed farmer energy display. --- .../ellpeck/actuallyadditions/mod/tile/TileEntityFarmer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/tile/TileEntityFarmer.java b/src/main/java/de/ellpeck/actuallyadditions/mod/tile/TileEntityFarmer.java index 343799214..0a9d37a39 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/tile/TileEntityFarmer.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/tile/TileEntityFarmer.java @@ -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