Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Commit

Permalink
possibly slightly improved performance of boilers again
Browse files Browse the repository at this point in the history
  • Loading branch information
Trinsdar committed Jul 26, 2023
1 parent 4d14792 commit 339d81a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ public void onServerUpdate() {
}

public void exportFluidFromMachineToSide(Direction side){
if (tile.fluidHandler.map(f -> f.getOutputTanks().isEmpty()).orElse(false)) return;
Optional<PlatformFluidHandler> cap = TesseractCapUtils.getFluidHandler(tile.getLevel(), tile.getBlockPos().relative(side), side.getOpposite());
tile.fluidHandler.ifPresent(f -> cap.ifPresent(other -> Utils.transferFluids(f.getOutputTanks(), other, 1000)));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ public void onServerUpdate() {
}

public void exportFluidFromMachineToSide(Direction side){
if (tile.fluidHandler.map(f -> f.getOutputTanks().isEmpty()).orElse(false)) return;
Optional<PlatformFluidHandler> cap = TesseractCapUtils.getFluidHandler(tile.getLevel(), tile.getBlockPos().relative(side), side.getOpposite());
tile.fluidHandler.ifPresent(f -> cap.ifPresent(other -> Utils.transferFluids(f.getOutputTanks(), other, 1000)));
}
Expand Down

0 comments on commit 339d81a

Please sign in to comment.