mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 02:34:00 +00:00
[MIRROR] Fixes teleport crashes (#11957)
Co-authored-by: Guti <32563288+TheCaramelion@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
9439abd721
commit
c03ce5d472
@@ -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)
|
/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))
|
if(isnull(precision))
|
||||||
precision = 0
|
precision = 0
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user