From 08f8d3b0f5d42418f15e78fa238dfe8a80a3046b Mon Sep 17 00:00:00 2001 From: IThundxr Date: Sat, 24 Aug 2024 10:46:45 -0400 Subject: [PATCH] extra check to make sure pipes don't place fluids they shouldn't --- .../java/com/simibubi/create/content/fluids/OpenEndedPipe.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/simibubi/create/content/fluids/OpenEndedPipe.java b/src/main/java/com/simibubi/create/content/fluids/OpenEndedPipe.java index ba9e3b3ff..dbece7c69 100644 --- a/src/main/java/com/simibubi/create/content/fluids/OpenEndedPipe.java +++ b/src/main/java/com/simibubi/create/content/fluids/OpenEndedPipe.java @@ -37,6 +37,7 @@ import net.minecraft.world.level.block.CampfireBlock; import net.minecraft.world.level.block.LiquidBlock; import net.minecraft.world.level.block.state.BlockState; import net.minecraft.world.level.block.state.properties.BlockStateProperties; +import net.minecraft.world.level.material.FlowingFluid; import net.minecraft.world.level.material.FluidState; import net.minecraft.world.level.material.Fluids; import net.minecraft.world.phys.AABB; @@ -188,6 +189,8 @@ public class OpenEndedPipe extends FlowSource { return false; if (fluid.isEmpty()) return false; + if (!(fluid.getFluid() instanceof FlowingFluid)) + return false; if (!FluidHelper.hasBlockState(fluid.getFluid())) return true;