Skip to content

Commit

Permalink
made TesseractFluidCapability implement PlatformFluidHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
Trinsdar committed Jul 22, 2023
1 parent a3c699f commit 6b94735
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -21,7 +22,7 @@
import java.util.List;


public class TesseractFluidCapability<T extends BlockEntity & IFluidPipe> extends TesseractBaseCapability<T> implements IFluidNode {
public class TesseractFluidCapability<T extends BlockEntity & IFluidPipe> extends TesseractBaseCapability<T> implements IFluidNode, FluidContainerHandler {

private FluidTransaction old;

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 6b94735

Please sign in to comment.