mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-27 02:22:26 +00:00
pAI Access Lock Program Fix (#9138)
The modular computer pAI access lock program should properly only show when you have a pAI in your computer.
This commit is contained in:
@@ -28,8 +28,15 @@
|
||||
|
||||
/datum/computer_file/program/New(var/obj/item/modular_computer/comp)
|
||||
..()
|
||||
if(comp && istype(comp))
|
||||
computer = comp
|
||||
if(comp)
|
||||
if(comp == "Compless") // we're software in the air, don't need a computer
|
||||
return
|
||||
else if(istype(comp))
|
||||
computer = comp
|
||||
else
|
||||
crash_with("Comp was of the wrong type for [src.filename]")
|
||||
else
|
||||
crash_with("Comp was not sent for [src.filename]")
|
||||
|
||||
/datum/computer_file/program/Destroy()
|
||||
computer.idle_threads -= src
|
||||
|
||||
Reference in New Issue
Block a user