mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-30 00:29:02 +01:00
Fixes a runtime with BotKeeper and observers (#72631)
## About The Pull Request Viewing the botkeeper app on an open computer as an observer would cause a runtime. check_access runtimes when passed something that isn't a mob/living, so an observer who opens the UI would be passed into check_access for every bot on station, causing runtimes.  ## Why It's Good For The Game This runtime fix was brought to you by [https://runtimes.moth.fans/runtime/](https://runtimes.moth.fans/runtime) ## Changelog 🆑 fix: viewing the botkeeper app as an observer will no longer runtime. /🆑
This commit is contained in:
@@ -213,6 +213,8 @@
|
||||
return TRUE
|
||||
if(!(bot_cover_flags & BOT_COVER_LOCKED)) // Unlocked.
|
||||
return TRUE
|
||||
if(!istype(user)) // Non-living mobs shouldn't be manipulating bots (like observes using the botkeeper UI).
|
||||
return FALSE
|
||||
|
||||
var/obj/item/card/id/used_id = id || user.get_idcard(TRUE)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user