diff --git a/rebar/src/main/kotlin/io/github/pylonmc/rebar/fluid/placement/FluidPipePlacementTask.kt b/rebar/src/main/kotlin/io/github/pylonmc/rebar/fluid/placement/FluidPipePlacementTask.kt index a818346ab..2e779b8ee 100644 --- a/rebar/src/main/kotlin/io/github/pylonmc/rebar/fluid/placement/FluidPipePlacementTask.kt +++ b/rebar/src/main/kotlin/io/github/pylonmc/rebar/fluid/placement/FluidPipePlacementTask.kt @@ -66,6 +66,12 @@ internal class FluidPipePlacementTask( return } + // Check if player goes to other worlds + if (player.world != origin.position.world) { + FluidPipePlacementService.cancelConnection(player) + return + } + // Check if player has moved too far away if (player.location.distance(origin.position.location) > RebarConfig.PIPE_PLACEMENT_CANCEL_DISTANCE) { FluidPipePlacementService.cancelConnection(player)