mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-20 20:45:28 +01:00
fixes hard del with objects created from holodeck spawners (#60140)
turns out mobs spawned from holodeck spawners dont get registered for qdeletion, now they do. hard dels btfo hard dels are poo poo and holodeck issues are definitely 100x worse
This commit is contained in:
@@ -253,8 +253,12 @@ and clear when youre done! if you dont i will use :newspaper2: on you
|
||||
effects += holo_effect
|
||||
spawned -= holo_effect
|
||||
var/atom/holo_effect_product = holo_effect.activate(src)//change name
|
||||
if(istype(holo_effect_product) || islist(holo_effect_product))
|
||||
if(istype(holo_effect_product))
|
||||
spawned += holo_effect_product // we want mobs or objects spawned via holoeffects to be tracked as objects
|
||||
RegisterSignal(holo_effect_product, COMSIG_PARENT_PREQDELETED, .proc/remove_from_holo_lists)
|
||||
if(islist(holo_effect_product))
|
||||
for(var/atom/atom_product as anything in holo_effect_product)
|
||||
RegisterSignal(atom_product, COMSIG_PARENT_PREQDELETED, .proc/remove_from_holo_lists)
|
||||
continue
|
||||
|
||||
if(isobj(holo_atom))
|
||||
|
||||
Reference in New Issue
Block a user