From 0e0fd2e0676701324f2940f6e3e0d7a40626462a Mon Sep 17 00:00:00 2001 From: Deleted user Date: Thu, 25 Jul 2024 01:00:00 +0500 Subject: [PATCH] Meh, I forgot somethingg, yea, this is not going to work like I think... and creating new lists for every player... meh... messing around, NO --- code/controllers/subsystem/who.dm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/code/controllers/subsystem/who.dm b/code/controllers/subsystem/who.dm index 8c49a1f5959d..f6200f9432c5 100644 --- a/code/controllers/subsystem/who.dm +++ b/code/controllers/subsystem/who.dm @@ -202,12 +202,14 @@ SUBSYSTEM_DEF(who) ui.set_autoupdate(TRUE) /datum/player_list/ui_data(mob/user) - var/admin = CLIENT_IS_STAFF(user.client) - if(admin) + if(CLIENT_IS_STAFF(user.client)) . = list_admin_data else . = list_data - .["admin"] = admin + +/datum/player_list/ui_static_data(mob/user) + . = list() + .["admin"] = CLIENT_IS_STAFF(user.client) /datum/player_list/ui_act(action, list/params, datum/tgui/ui, datum/ui_state/state) . = ..()