From 72a68dfcadd48fe14246b2a4330904427d11dc82 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Mon, 19 Oct 2020 21:51:26 +0200 Subject: [PATCH] invalidate the tank in the spring --- .../de/ellpeck/naturesaura/blocks/tiles/TileEntitySpring.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/de/ellpeck/naturesaura/blocks/tiles/TileEntitySpring.java b/src/main/java/de/ellpeck/naturesaura/blocks/tiles/TileEntitySpring.java index 67cd5cda..38a0cef9 100644 --- a/src/main/java/de/ellpeck/naturesaura/blocks/tiles/TileEntitySpring.java +++ b/src/main/java/de/ellpeck/naturesaura/blocks/tiles/TileEntitySpring.java @@ -27,7 +27,7 @@ import net.minecraftforge.fluids.capability.templates.FluidTank; public class TileEntitySpring extends TileEntityImpl implements ITickableTileEntity { - private final LazyOptional tank = LazyOptional.of(() -> new InfiniteTank()); + private final LazyOptional tank = LazyOptional.of(InfiniteTank::new); private AABBTicket waterTicket; public TileEntitySpring() { @@ -51,6 +51,7 @@ public class TileEntitySpring extends TileEntityImpl implements ITickableTileEnt this.waterTicket.invalidate(); this.waterTicket = null; } + this.tank.invalidate(); } @Override