mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-27 01:08:34 +01:00
make the coffee maker store its coffee cache when breaking it
This commit is contained in:
parent
6e1c4df988
commit
2dbc50f52b
1 changed files with 2 additions and 2 deletions
|
@ -88,8 +88,8 @@ public class TileEntityCoffeeMachine extends TileEntityInventoryBase implements
|
||||||
super.writeSyncableNBT(compound, type);
|
super.writeSyncableNBT(compound, type);
|
||||||
this.storage.writeToNBT(compound);
|
this.storage.writeToNBT(compound);
|
||||||
this.tank.writeToNBT(compound);
|
this.tank.writeToNBT(compound);
|
||||||
|
compound.setInteger("Cache", this.coffeeCacheAmount);
|
||||||
if(type != NBTType.SAVE_BLOCK){
|
if(type != NBTType.SAVE_BLOCK){
|
||||||
compound.setInteger("Cache", this.coffeeCacheAmount);
|
|
||||||
compound.setInteger("Time", this.brewTime);
|
compound.setInteger("Time", this.brewTime);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -99,8 +99,8 @@ public class TileEntityCoffeeMachine extends TileEntityInventoryBase implements
|
||||||
super.readSyncableNBT(compound, type);
|
super.readSyncableNBT(compound, type);
|
||||||
this.storage.readFromNBT(compound);
|
this.storage.readFromNBT(compound);
|
||||||
this.tank.readFromNBT(compound);
|
this.tank.readFromNBT(compound);
|
||||||
|
this.coffeeCacheAmount = compound.getInteger("Cache");
|
||||||
if(type != NBTType.SAVE_BLOCK){
|
if(type != NBTType.SAVE_BLOCK){
|
||||||
this.coffeeCacheAmount = compound.getInteger("Cache");
|
|
||||||
this.brewTime = compound.getInteger("Time");
|
this.brewTime = compound.getInteger("Time");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue