From 2dbc50f52bbb06cd3571be7b0248ce0143b1d092 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Fri, 10 Mar 2017 23:00:31 +0100 Subject: [PATCH] make the coffee maker store its coffee cache when breaking it --- .../actuallyadditions/mod/tile/TileEntityCoffeeMachine.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/tile/TileEntityCoffeeMachine.java b/src/main/java/de/ellpeck/actuallyadditions/mod/tile/TileEntityCoffeeMachine.java index 950600fd4..0a03994c8 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/tile/TileEntityCoffeeMachine.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/tile/TileEntityCoffeeMachine.java @@ -88,8 +88,8 @@ public class TileEntityCoffeeMachine extends TileEntityInventoryBase implements super.writeSyncableNBT(compound, type); this.storage.writeToNBT(compound); this.tank.writeToNBT(compound); + compound.setInteger("Cache", this.coffeeCacheAmount); if(type != NBTType.SAVE_BLOCK){ - compound.setInteger("Cache", this.coffeeCacheAmount); compound.setInteger("Time", this.brewTime); } } @@ -99,8 +99,8 @@ public class TileEntityCoffeeMachine extends TileEntityInventoryBase implements super.readSyncableNBT(compound, type); this.storage.readFromNBT(compound); this.tank.readFromNBT(compound); + this.coffeeCacheAmount = compound.getInteger("Cache"); if(type != NBTType.SAVE_BLOCK){ - this.coffeeCacheAmount = compound.getInteger("Cache"); this.brewTime = compound.getInteger("Time"); } }