From 6f8fc5125d461dbd409222a72ce4502363f2706b Mon Sep 17 00:00:00 2001 From: silicons <2003111+silicons@users.noreply.github.com> Date: Tue, 15 Mar 2022 10:24:46 -0700 Subject: [PATCH] Update space.dm --- code/_rendering/parallax/types/space.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/_rendering/parallax/types/space.dm b/code/_rendering/parallax/types/space.dm index 38ad62aede..1a6cf191cb 100644 --- a/code/_rendering/parallax/types/space.dm +++ b/code/_rendering/parallax/types/space.dm @@ -17,7 +17,7 @@ P.pixel_x = planet_offset_x P.pixel_y = planet_offset_y . += P - if(random_layer) + if(ispath(random_layer, /atom/movable/screen/parallax_layer)) . += new random_layer if(ispath(random_layer, /atom/movable/screen/parallax_layer/space/random/space_gas)) var/atom/movable/screen/parallax_layer/space/random/space_gas/SG = locate(random_layer) in objects