Merge pull request #15556 from Citadel-Station-13/silicons-patch-1

fixes parallax trying to make null objects
This commit is contained in:
Lin
2022-03-17 06:23:40 +00:00
committed by GitHub
+1 -1
View File
@@ -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