modsuit storage empties when being removed from the suit (#65416)

This commit is contained in:
Fikou
2022-03-18 09:18:13 +01:00
committed by GitHub
parent b359f0e379
commit b98f16d659
@@ -38,6 +38,7 @@
var/datum/component/storage/modstorage = mod.GetComponent(/datum/component/storage)
storage.slaves -= modstorage
qdel(modstorage)
SEND_SIGNAL(src, COMSIG_TRY_STORAGE_QUICK_EMPTY, drop_location())
SEND_SIGNAL(src, COMSIG_TRY_STORAGE_SET_LOCKSTATE, TRUE)
UnregisterSignal(mod.chestplate, COMSIG_ITEM_PRE_UNEQUIP)