[NO GBP] Allows plumbing machines on ducts with different layers (#95052)

## About The Pull Request
- Closes #95039. 

Although intentionally removed in #94678 the inconvenience of not
allowing ducts under machines of different layers isn't worth the visual
clutter it has helped in reducing so I'm bringing it back

## Changelog
🆑
qol: you can place plumbing machines on ducts with different layers
again
/🆑
This commit is contained in:
SyncIt21
2026-02-11 14:07:53 -05:00
committed by GitHub
parent 6d573e9d68
commit 8bacdd2b71
3 changed files with 13 additions and 7 deletions
+1 -1
View File
@@ -221,7 +221,7 @@
return FALSE
if(initial(blueprint.density) && destination.is_blocked_turf(exclude_mobs = FALSE, source_atom = null, ignore_atoms = null))
return FALSE
return isnull(ducting_layer_check(destination, ispath(blueprint, /obj/machinery/duct) ? GLOB.plumbing_layers[current_layer] : NONE))
return isnull(ducting_layer_check(destination, (ispath(blueprint, /obj/machinery/duct) ? 1 : -1) * GLOB.plumbing_layers[current_layer]))
/obj/item/construction/plumbing/interact_with_atom(atom/interacting_with, mob/living/user, list/modifiers)
. = ..()