[MIRROR] August 2024 various fixes (#8766)

Co-authored-by: Nadyr <41974248+Darlantanis@users.noreply.github.com>
This commit is contained in:
CHOMPStation2
2024-08-13 17:15:42 -07:00
committed by GitHub
parent f859c5e25f
commit 24658f4b9d
32 changed files with 703 additions and 116 deletions

View File

@@ -17,7 +17,7 @@
return
else // They're outside and hopefully on a planet.
if(!(T.z in SSplanets.z_to_planet) || !(SSplanets.z_to_planet[T.z]))
if(T.z <= 0 || SSplanets.z_to_planet.len < T.z || !(SSplanets.z_to_planet[T.z])) //VOREstation edit - removed broken in list check; use length limit instead.
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]