A variety of miscellaneous bugfixes

This commit is contained in:
Heroman
2023-07-02 09:13:10 +10:00
parent c6398bf473
commit ef61023c04
6 changed files with 11 additions and 11 deletions
+2 -2
View File
@@ -17,10 +17,10 @@
return
else // They're outside and hopefully on a planet.
var/datum/planet/P = SSplanets.z_to_planet[T.z]
if(!P)
if(!(T.z in SSplanets.z_to_planet) || !(SSplanets.z_to_planet[T.z]))
to_chat(usr, span("warning", "You appear to be outside, but not on a planet... Something is wrong."))
return
var/datum/planet/P = SSplanets.z_to_planet[T.z]
var/datum/weather_holder/WH = P.weather_holder