[MIRROR] runtime viewer fixes (#11668)

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-09-17 05:36:34 -07:00
committed by GitHub
parent a466bf7b88
commit fa407a034a
8 changed files with 20 additions and 9 deletions

View File

@@ -1224,6 +1224,17 @@
sleep(2)
C.jumptocoord(x,y,z)
else if(href_list["viewruntime"])
var/datum/error_viewer/error_viewer = locate(href_list["viewruntime"])
if(!istype(error_viewer))
to_chat(usr, span_warning("That runtime viewer no longer exists."), confidential = TRUE)
return
if(href_list["viewruntime_backto"])
error_viewer.show_to(owner, locate(href_list["viewruntime_backto"]), href_list["viewruntime_linear"])
else
error_viewer.show_to(owner, null, href_list["viewruntime_linear"])
else if(href_list["adminchecklaws"])
output_ai_laws()