diff --git a/common/src/main/java/muramasa/gregtech/tile/single/TileEntityCoalBoiler.java b/common/src/main/java/muramasa/gregtech/tile/single/TileEntityCoalBoiler.java index 29874bd00..b3f2a36cc 100644 --- a/common/src/main/java/muramasa/gregtech/tile/single/TileEntityCoalBoiler.java +++ b/common/src/main/java/muramasa/gregtech/tile/single/TileEntityCoalBoiler.java @@ -176,6 +176,7 @@ public void onServerUpdate() { } public void exportFluidFromMachineToSide(Direction side){ + if (tile.fluidHandler.map(f -> f.getOutputTanks().isEmpty()).orElse(false)) return; Optional cap = TesseractCapUtils.getFluidHandler(tile.getLevel(), tile.getBlockPos().relative(side), side.getOpposite()); tile.fluidHandler.ifPresent(f -> cap.ifPresent(other -> Utils.transferFluids(f.getOutputTanks(), other, 1000))); } diff --git a/common/src/main/java/muramasa/gregtech/tile/single/TileEntityLavaBoiler.java b/common/src/main/java/muramasa/gregtech/tile/single/TileEntityLavaBoiler.java index 8976f927a..64653e552 100644 --- a/common/src/main/java/muramasa/gregtech/tile/single/TileEntityLavaBoiler.java +++ b/common/src/main/java/muramasa/gregtech/tile/single/TileEntityLavaBoiler.java @@ -137,6 +137,7 @@ public void onServerUpdate() { } public void exportFluidFromMachineToSide(Direction side){ + if (tile.fluidHandler.map(f -> f.getOutputTanks().isEmpty()).orElse(false)) return; Optional cap = TesseractCapUtils.getFluidHandler(tile.getLevel(), tile.getBlockPos().relative(side), side.getOpposite()); tile.fluidHandler.ifPresent(f -> cap.ifPresent(other -> Utils.transferFluids(f.getOutputTanks(), other, 1000))); }