From 6b947355e1c48a3b89d4a6979d7af812b68128fc Mon Sep 17 00:00:00 2001 From: trinsdar <30245301+Trinsdar@users.noreply.github.com> Date: Sat, 22 Jul 2023 11:16:17 -0400 Subject: [PATCH] made TesseractFluidCapability implement PlatformFluidHandler --- .../api/capability/TesseractFluidCapability.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/common/src/main/java/tesseract/api/capability/TesseractFluidCapability.java b/common/src/main/java/tesseract/api/capability/TesseractFluidCapability.java index eefb7d2b..0c883abf 100644 --- a/common/src/main/java/tesseract/api/capability/TesseractFluidCapability.java +++ b/common/src/main/java/tesseract/api/capability/TesseractFluidCapability.java @@ -12,6 +12,7 @@ import org.jetbrains.annotations.NotNull; import tesseract.TesseractCapUtils; import tesseract.TesseractGraphWrappers; +import tesseract.api.fluid.FluidContainerHandler; import tesseract.api.fluid.FluidTransaction; import tesseract.api.fluid.IFluidNode; import tesseract.api.fluid.IFluidPipe; @@ -21,7 +22,7 @@ import java.util.List; -public class TesseractFluidCapability extends TesseractBaseCapability implements IFluidNode { +public class TesseractFluidCapability extends TesseractBaseCapability implements IFluidNode, FluidContainerHandler { private FluidTransaction old; @@ -85,6 +86,11 @@ public FluidSnapshot createSnapshot() { return null; } + @Override + public FluidContainer getFluidContainer() { + return this; + } + @Override public long insertFluid(FluidHolder resource, boolean simulate) { if (this.isSending) return 0;