[MIRROR] fixes null plane debuggers for admins [MDB IGNORE] (#26114)

* fixes null plane debuggers for admins (#80939)

## About The Pull Request
Yeah, why would we delete the plane debugger while the admin is active?

## Why It's Good For The Game
Broken debugging tool.

## Changelog
N/A

* fixes null plane debuggers for admins

---------

Co-authored-by: Ghom <42542238+Ghommie@users.noreply.github.com>
This commit is contained in:
SkyratBot
2024-01-14 14:24:07 +00:00
committed by GitHub
co-authored by Ghom
parent 5d6bc6a599
commit 4b6d69046c
+2 -2
View File
@@ -73,7 +73,6 @@ GLOBAL_PROTECT(href_token)
activate()
else
deactivate()
plane_debug = new(src)
/datum/admins/Destroy()
if(IsAdminAdvancedProcCall())
@@ -88,7 +87,7 @@ GLOBAL_PROTECT(href_token)
GLOB.deadmins -= target
GLOB.admin_datums[target] = src
deadmined = FALSE
QDEL_NULL(plane_debug)
plane_debug = new(src)
if (GLOB.directory[target])
associate(GLOB.directory[target]) //find the client for a ckey if they are connected and associate them with us
@@ -99,6 +98,7 @@ GLOBAL_PROTECT(href_token)
return
GLOB.deadmins[target] = src
GLOB.admin_datums -= target
QDEL_NULL(plane_debug)
deadmined = TRUE
var/client/client = owner || GLOB.directory[target]