diff --git a/code/modules/cargo/packs.dm b/code/modules/cargo/packs.dm index 79154504ff4..46ceeacb53e 100644 --- a/code/modules/cargo/packs.dm +++ b/code/modules/cargo/packs.dm @@ -48,6 +48,8 @@ if(paying_account) C = new /obj/structure/closet/crate/secure/owned(A, paying_account) C.name = "[crate_name] - Purchased by [paying_account.account_holder]" + else if(!crate_type) + CRASH("tried to generate a supply pack without a valid crate type") else C = new crate_type(A) C.name = crate_name @@ -2745,6 +2747,9 @@ crate_type = null special_pod = /obj/structure/closet/supplypod/bluespacepod +/datum/supply_pack/misc/empty/generate(atom/A, datum/bank_account/paying_account) + return + /datum/supply_pack/misc/religious_supplies name = "Religious Supplies Crate" desc = "Keep your local chaplain happy and well-supplied, lest they call down judgement upon your cargo bay. Contains two bottles of holywater, bibles, chaplain robes, and burial garmets." diff --git a/code/modules/events/stray_cargo.dm b/code/modules/events/stray_cargo.dm index c087c7ca7db..603fe79ba97 100644 --- a/code/modules/events/stray_cargo.dm +++ b/code/modules/events/stray_cargo.dm @@ -52,8 +52,9 @@ pack_type = pick(stray_spawnable_supply_packs) var/datum/supply_pack/SP = new pack_type var/obj/structure/closet/crate/crate = SP.generate(null) - crate.locked = FALSE //Unlock secure crates - crate.update_appearance() + if(crate) //empty supply packs are a thing! get memed on. + crate.locked = FALSE //Unlock secure crates + crate.update_appearance() var/obj/structure/closet/supplypod/pod = make_pod() new /obj/effect/pod_landingzone(LZ, pod, crate)