fixed the adept hopper storing the cooldown in the block

This commit is contained in:
Ellpeck 2019-01-26 23:22:05 +01:00
parent a9fba47159
commit 047e8e91c3

View file

@ -124,12 +124,14 @@ public class TileEntityGratedChute extends TileEntityImpl implements ITickable {
@Override @Override
public void writeNBT(NBTTagCompound compound, SaveType type) { public void writeNBT(NBTTagCompound compound, SaveType type) {
super.writeNBT(compound, type); super.writeNBT(compound, type);
if (type != SaveType.BLOCK)
compound.setInteger("cooldown", this.cooldown); compound.setInteger("cooldown", this.cooldown);
} }
@Override @Override
public void readNBT(NBTTagCompound compound, SaveType type) { public void readNBT(NBTTagCompound compound, SaveType type) {
super.readNBT(compound, type); super.readNBT(compound, type);
if (type != SaveType.BLOCK)
this.cooldown = compound.getInteger("cooldown"); this.cooldown = compound.getInteger("cooldown");
} }