mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-18 11:36:24 +01:00
Fix admin follow runtime (#43282)
Fixed a minor runtime caused by admins clicking a follow link while in the lobby.
This commit is contained in:
@@ -930,8 +930,12 @@
|
||||
var/atom/movable/AM = locate(href_list["adminplayerobservefollow"])
|
||||
|
||||
var/client/C = usr.client
|
||||
var/can_ghost = TRUE
|
||||
if(!isobserver(usr))
|
||||
C.admin_ghost()
|
||||
can_ghost = C.admin_ghost()
|
||||
|
||||
if(!can_ghost)
|
||||
return
|
||||
var/mob/dead/observer/A = C.mob
|
||||
A.ManualFollow(AM)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user