[MIRROR] Fixes teleport crashes (#11957)

Co-authored-by: Guti <32563288+TheCaramelion@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-11-10 15:22:20 -07:00
committed by GitHub
parent 9439abd721
commit c03ce5d472

View File

@@ -7,6 +7,10 @@ GLOBAL_LIST_INIT(bluespace_item_types, list(
))
/proc/do_teleport(atom/movable/teleatom, atom/destination, precision = null, datum/effect/effect/effectin = null, datum/effect/effect/effectout = null, asoundin = null, asoundout = null, no_effects=FALSE, channel=TELEPORT_CHANNEL_BLUESPACE, forced = FALSE)
if(istype(teleatom, /obj/effect) && !istype(teleatom, /obj/effect/dummy/chameleon)) // Earliest check because otherwise sparks will fuck you up
qdel(teleatom)
return FALSE
if(isnull(precision))
precision = 0