Merge pull request #11640 from VOREStation/upstream-merge-8308

[MIRROR] Fixes runtime in mech equipment deletion
This commit is contained in:
Casey
2021-10-27 11:19:40 -04:00
committed by GitHub
@@ -228,6 +228,8 @@
return ..()
/obj/item/mecha_parts/mecha_equipment/proc/detach(atom/moveto=null)
if(!chassis)
return
moveto = moveto || get_turf(chassis)
forceMove(moveto)
chassis.equipment -= src