mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-11-26 05:08:34 +01:00
fixed the adept hopper storing the cooldown in the block
This commit is contained in:
parent
a9fba47159
commit
047e8e91c3
1 changed files with 4 additions and 2 deletions
|
@ -124,13 +124,15 @@ 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);
|
||||||
compound.setInteger("cooldown", this.cooldown);
|
if (type != SaveType.BLOCK)
|
||||||
|
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);
|
||||||
this.cooldown = compound.getInteger("cooldown");
|
if (type != SaveType.BLOCK)
|
||||||
|
this.cooldown = compound.getInteger("cooldown");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue