mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
Fixes runtime when attempting to latejoin into a deleted core
This commit is contained in:
@@ -187,6 +187,11 @@
|
||||
anchored = 1
|
||||
state = 20//So it doesn't interact based on the above. Not really necessary.
|
||||
|
||||
/obj/structure/AIcore/deactivated/Del()
|
||||
if(src in empty_playable_ai_cores)
|
||||
empty_playable_ai_cores -= src
|
||||
..()
|
||||
|
||||
/obj/structure/AIcore/deactivated/proc/load_ai(var/mob/living/silicon/ai/transfer, var/obj/item/device/aicard/card, var/mob/user)
|
||||
|
||||
if(!istype(transfer) || locate(/mob/living/silicon/ai) in src)
|
||||
|
||||
Reference in New Issue
Block a user