mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-01-06 07:22:15 +00:00
Silicon UI check runtime (#973)
A missing sanity check was causing runtime errors whenever a borg had no cell, and had a nanoUI window open.
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
|
||||
/mob/living/silicon/robot/shared_nano_interaction()
|
||||
. = STATUS_INTERACTIVE
|
||||
if(cell.charge <= 0)
|
||||
if(!cell || (cell && cell.charge <= 0))
|
||||
return STATUS_CLOSE
|
||||
if(lockcharge)
|
||||
. = STATUS_DISABLED
|
||||
|
||||
Reference in New Issue
Block a user