From 5c4e584a73436e1f199721e6ee79634b6c9cf9fa Mon Sep 17 00:00:00 2001 From: Mrbysco Date: Tue, 22 Oct 2024 23:03:48 +0200 Subject: [PATCH] Allow the Coffee Machine to consume water (Fixing #1422) --- .../actuallyadditions/mod/tile/TileEntityCoffeeMachine.java | 5 +++-- 1 file changed, 3 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 a3359886a..949274aa5 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/tile/TileEntityCoffeeMachine.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/tile/TileEntityCoffeeMachine.java @@ -14,6 +14,7 @@ import de.ellpeck.actuallyadditions.api.ActuallyTags; import de.ellpeck.actuallyadditions.mod.AASounds; import de.ellpeck.actuallyadditions.mod.blocks.ActuallyBlocks; import de.ellpeck.actuallyadditions.mod.crafting.CoffeeIngredientRecipe; +import de.ellpeck.actuallyadditions.mod.fluids.AATank; import de.ellpeck.actuallyadditions.mod.inventory.ContainerCoffeeMachine; import de.ellpeck.actuallyadditions.mod.items.ActuallyItems; import de.ellpeck.actuallyadditions.mod.items.ItemCoffee; @@ -59,7 +60,7 @@ public class TileEntityCoffeeMachine extends TileEntityInventoryBase implements public final CustomEnergyStorage storage = new CustomEnergyStorage(300000, 250, 0); - public final FluidTank tank = new FluidTank(4 * FluidType.BUCKET_VOLUME) { + public final AATank tank = new AATank(4 * FluidType.BUCKET_VOLUME) { @Nonnull @Override public FluidStack drain(int maxDrain, FluidAction action) { @@ -206,7 +207,7 @@ public class TileEntityCoffeeMachine extends TileEntityInventoryBase implements this.inv.setStackInSlot(SLOT_OUTPUT, output.copy()); this.inv.getStackInSlot(SLOT_INPUT).shrink(1); this.coffeeCacheAmount -= CACHE_USE; - this.tank.drain(WATER_USE, IFluidHandler.FluidAction.EXECUTE); + this.tank.drainInternal(WATER_USE, IFluidHandler.FluidAction.EXECUTE); } } } else {