Fixes admin buildmode from gibbing you (#17191)

This commit is contained in:
Cameron Lennox
2025-02-20 00:48:04 -05:00
committed by GitHub
parent 7b49a73beb
commit f937468128
2 changed files with 6 additions and 4 deletions
+2 -4
View File
@@ -658,12 +658,10 @@
return
if(pa.Find("left") && !pa.Find("ctrl"))
if(ispath(holder.buildmode.objholder))
var/obj/effect/falling_effect/FE = new /obj/effect/falling_effect(get_turf(object), holder.buildmode.objholder)
FE.crushing = FALSE
new /obj/effect/falling_effect(get_turf(object), holder.buildmode.objholder, FALSE)
else if(pa.Find("right"))
if(ispath(holder.buildmode.objholder))
var/obj/effect/falling_effect/FE = new /obj/effect/falling_effect(get_turf(object), holder.buildmode.objholder)
FE.crushing = TRUE
new /obj/effect/falling_effect(get_turf(object), holder.buildmode.objholder, TRUE)
else if(pa.Find("ctrl"))
holder.buildmode.objholder = object.type
to_chat(user, span_notice("[object]([object.type]) copied to buildmode."))