mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-09 16:33:50 +00:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user