mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-14 17:45:02 +01:00
Proccall handler hotfix (#61642)
Fixes proccall handlers runtiming because GLOB.AdminProcCallHandler not being set
This commit is contained in:
@@ -26,8 +26,9 @@ GLOBAL_PROTECT(AdminProcCallHandler)
|
||||
|
||||
/mob/proccall_handler/Initialize(mapload)
|
||||
. = ..()
|
||||
if(GLOB.AdminProcCallHandler)
|
||||
if(GLOB.AdminProcCallHandler && GLOB.AdminProcCallHandler != src)
|
||||
return INITIALIZE_HINT_QDEL
|
||||
GLOB.AdminProcCallHandler = src
|
||||
|
||||
/mob/proccall_handler/vv_edit_var(var_name, var_value)
|
||||
if(GLOB.AdminProcCallHandler != src)
|
||||
@@ -49,9 +50,7 @@ GLOBAL_PROTECT(AdminProcCallHandler)
|
||||
if(GLOB.AdminProcCallHandler != src)
|
||||
return ..()
|
||||
if(!force)
|
||||
#ifndef UNIT_TESTS
|
||||
stack_trace("Attempted deletion on [type] - [name], aborting.")
|
||||
#endif
|
||||
return QDEL_HINT_LETMELIVE
|
||||
return ..()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user