From c03ce5d4720a4aa9e646062a6e3609f7da93c6c5 Mon Sep 17 00:00:00 2001 From: CHOMPStation2StaffMirrorBot <94713762+CHOMPStation2StaffMirrorBot@users.noreply.github.com> Date: Mon, 10 Nov 2025 15:22:20 -0700 Subject: [PATCH] [MIRROR] Fixes teleport crashes (#11957) Co-authored-by: Guti <32563288+TheCaramelion@users.noreply.github.com> --- code/datums/helper_datums/teleport.dm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/datums/helper_datums/teleport.dm b/code/datums/helper_datums/teleport.dm index 54ed7b0ee3..94e98e1f6a 100644 --- a/code/datums/helper_datums/teleport.dm +++ b/code/datums/helper_datums/teleport.dm @@ -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