mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-25 01:22:24 +00:00
Fix issues with New and Destroy in NTNet
- New() on atoms needs to call parent. - Destroy() needs to return a qdel hint. - Only add yourself to processing in Initialize() to make sure globals are instantiated.
This commit is contained in:
@@ -41,14 +41,14 @@
|
||||
/obj/item/modular_computer/proc/install_default_programs()
|
||||
return 1
|
||||
|
||||
/obj/item/modular_computer/New()
|
||||
/obj/item/modular_computer/Initialize()
|
||||
START_PROCESSING(SSobj, src)
|
||||
install_default_hardware()
|
||||
if(hard_drive)
|
||||
install_default_programs()
|
||||
update_icon()
|
||||
update_verbs()
|
||||
..()
|
||||
. = ..()
|
||||
|
||||
/obj/item/modular_computer/Destroy()
|
||||
kill_program(1)
|
||||
|
||||
Reference in New Issue
Block a user