invalidate the tank in the spring

This commit is contained in:
Ell 2020-10-19 21:51:26 +02:00
parent 48dfb8fe96
commit 72a68dfcad

View file

@ -27,7 +27,7 @@ import net.minecraftforge.fluids.capability.templates.FluidTank;
public class TileEntitySpring extends TileEntityImpl implements ITickableTileEntity { public class TileEntitySpring extends TileEntityImpl implements ITickableTileEntity {
private final LazyOptional<IFluidHandler> tank = LazyOptional.of(() -> new InfiniteTank()); private final LazyOptional<IFluidHandler> tank = LazyOptional.of(InfiniteTank::new);
private AABBTicket waterTicket; private AABBTicket waterTicket;
public TileEntitySpring() { public TileEntitySpring() {
@ -51,6 +51,7 @@ public class TileEntitySpring extends TileEntityImpl implements ITickableTileEnt
this.waterTicket.invalidate(); this.waterTicket.invalidate();
this.waterTicket = null; this.waterTicket = null;
} }
this.tank.invalidate();
} }
@Override @Override