Fixed Charlie MOD installer not installing MODsuits unless you have a backpack to drop (#85671)

## About The Pull Request

Closes #85669

## Changelog
🆑
fix: Fixed Charlie MOD installer not installing MODsuit unless you have
a backpack to drop
/🆑
This commit is contained in:
SmArtKar
2024-08-08 23:59:47 +02:00
committed by GitHub
parent e53c4875a6
commit 2913b95b70
@@ -64,7 +64,7 @@
var/mob/living/carbon/human/human_occupant = occupant
if(!istype(human_occupant))
return
if(!human_occupant.dropItemToGround(human_occupant.back))
if(!isnull(human_occupant.back) && !human_occupant.dropItemToGround(human_occupant.back))
return
if(!human_occupant.equip_to_slot_if_possible(mod_unit, mod_unit.slot_flags, qdel_on_fail = FALSE, disable_warning = TRUE))
return