[MIRROR] Fix gas canister supply packs causing stray cargo pod runtime [MDB IGNORE] (#15949)

* Fix gas canister supply packs causing stray cargo pod runtime (#69296)

* Fix gas canister supply packs causing stray cargo pod runtime

Co-authored-by: RandomGamer123 <31096837+RandomGamer123@users.noreply.github.com>
This commit is contained in:
SkyratBot
2022-09-03 01:47:50 +02:00
committed by GitHub
parent d30e6fcb10
commit a4777d3052

View File

@@ -52,7 +52,11 @@
pack_type = pick(possible_pack_types)
else
pack_type = pick(stray_spawnable_supply_packs)
var/datum/supply_pack/SP = new pack_type
var/datum/supply_pack/SP
if(ispath(pack_type, /datum/supply_pack))
SP = new pack_type
else // treat this as a supply pack id and resolving it with SSshuttle
SP = SSshuttle.supply_packs[pack_type]
var/obj/structure/closet/crate/crate = SP.generate(null)
if(crate) //empty supply packs are a thing! get memed on.
crate.locked = FALSE //Unlock secure crates