[MIRROR] Mech construction fix and unittest (#12062)

Co-authored-by: Will <7099514+Willburd@users.noreply.github.com>
Co-authored-by: C.L. <killer65311@gmail.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-11-29 22:05:21 -07:00
committed by GitHub
parent 7e9ad48982
commit ad5a944c8a
9 changed files with 38 additions and 23 deletions

View File

@@ -74,7 +74,8 @@
/datum/construction/proc/spawn_result()
if(result)
SEND_GLOBAL_SIGNAL(COMSIG_GLOB_MECH_CONSTRUCTED, new result(get_turf(holder)))
var/atom/spawned_construct = new result(get_turf(holder))
SEND_GLOBAL_SIGNAL(COMSIG_GLOB_MECH_CONSTRUCTED, spawned_construct)
spawn()
qdel(holder)
return