mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 23:28:35 +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
|
@Override
|
||||||
public void writeSyncableNBT(CompoundNBT compound, NBTType type) {
|
public void writeSyncableNBT(CompoundNBT compound, NBTType type) {
|
||||||
super.writeSyncableNBT(compound, type);
|
|
||||||
if (type != NBTType.SAVE_BLOCK) {
|
if (type != NBTType.SAVE_BLOCK) {
|
||||||
compound.putInt("WaitTime", this.waitTime);
|
compound.putInt("WaitTime", this.waitTime);
|
||||||
}
|
}
|
||||||
|
@ -71,11 +70,11 @@ public class TileEntityFarmer extends TileEntityInventoryBase implements IFarmer
|
||||||
compound.putInt("CheckY", this.checkY);
|
compound.putInt("CheckY", this.checkY);
|
||||||
}
|
}
|
||||||
this.storage.writeToNBT(compound);
|
this.storage.writeToNBT(compound);
|
||||||
|
super.writeSyncableNBT(compound, type);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void readSyncableNBT(CompoundNBT compound, NBTType type) {
|
public void readSyncableNBT(CompoundNBT compound, NBTType type) {
|
||||||
super.readSyncableNBT(compound, type);
|
|
||||||
if (type != NBTType.SAVE_BLOCK) {
|
if (type != NBTType.SAVE_BLOCK) {
|
||||||
this.waitTime = compound.getInt("WaitTime");
|
this.waitTime = compound.getInt("WaitTime");
|
||||||
}
|
}
|
||||||
|
@ -84,6 +83,7 @@ public class TileEntityFarmer extends TileEntityInventoryBase implements IFarmer
|
||||||
this.checkY = compound.getInt("CheckY");
|
this.checkY = compound.getInt("CheckY");
|
||||||
}
|
}
|
||||||
this.storage.readFromNBT(compound);
|
this.storage.readFromNBT(compound);
|
||||||
|
super.readSyncableNBT(compound, type);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue