Fix /turf/open/space/bluespace spark crash (#50229)

This commit is contained in:
Dennok
2020-03-28 00:40:04 -07:00
committed by GitHub
parent a5d2df628f
commit 95c6d579b7
@@ -225,9 +225,9 @@ GLOBAL_VAR_INIT(hhmysteryRoomNumber, 1337)
var/obj/item/hilbertshotel/parentSphere
/turf/open/space/bluespace/Entered(atom/movable/A)
. = ..()
A.forceMove(get_turf(parentSphere))
do_sparks(3, FALSE, get_turf(A))
. = ..()
if(parentSphere && A.forceMove(get_turf(parentSphere)))
do_sparks(3, FALSE, get_turf(A))
/turf/closed/indestructible/hoteldoor
name = "Hotel Door"