mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Merge pull request #5014 from PolarisSS13/Ater_Weather_report
Weather reports won't crash when planet controller dies
This commit is contained in:
@@ -69,6 +69,7 @@
|
|||||||
im_list_ui[++im_list_ui.len] = list("address" = I["address"], "to_address" = I["to_address"], "im" = I["im"])
|
im_list_ui[++im_list_ui.len] = list("address" = I["address"], "to_address" = I["to_address"], "im" = I["im"])
|
||||||
|
|
||||||
//Weather reports.
|
//Weather reports.
|
||||||
|
if(planet_controller)
|
||||||
for(var/datum/planet/planet in planet_controller.planets)
|
for(var/datum/planet/planet in planet_controller.planets)
|
||||||
if(planet.weather_holder && planet.weather_holder.current_weather)
|
if(planet.weather_holder && planet.weather_holder.current_weather)
|
||||||
var/list/W = list(
|
var/list/W = list(
|
||||||
|
|||||||
Reference in New Issue
Block a user