From 047e8e91c31d64ff8bf2ff851d188769cfbbb44d Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Sat, 26 Jan 2019 23:22:05 +0100 Subject: [PATCH] fixed the adept hopper storing the cooldown in the block --- .../naturesaura/blocks/tiles/TileEntityGratedChute.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/de/ellpeck/naturesaura/blocks/tiles/TileEntityGratedChute.java b/src/main/java/de/ellpeck/naturesaura/blocks/tiles/TileEntityGratedChute.java index 86af2dc5..b291ae72 100644 --- a/src/main/java/de/ellpeck/naturesaura/blocks/tiles/TileEntityGratedChute.java +++ b/src/main/java/de/ellpeck/naturesaura/blocks/tiles/TileEntityGratedChute.java @@ -124,13 +124,15 @@ public class TileEntityGratedChute extends TileEntityImpl implements ITickable { @Override public void writeNBT(NBTTagCompound compound, SaveType type) { super.writeNBT(compound, type); - compound.setInteger("cooldown", this.cooldown); + if (type != SaveType.BLOCK) + compound.setInteger("cooldown", this.cooldown); } @Override public void readNBT(NBTTagCompound compound, SaveType type) { super.readNBT(compound, type); - this.cooldown = compound.getInteger("cooldown"); + if (type != SaveType.BLOCK) + this.cooldown = compound.getInteger("cooldown"); } @Override