From ab071f57c7157035b83902942f3c8022c294eb50 Mon Sep 17 00:00:00 2001 From: Citinited Date: Tue, 18 Dec 2018 21:28:29 +0000 Subject: [PATCH] Fixes a bug preventing snow machines from being orderable at roundstart --- code/modules/holiday/christmas.dm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/code/modules/holiday/christmas.dm b/code/modules/holiday/christmas.dm index 5a9a8605442..ae8a1379c7f 100644 --- a/code/modules/holiday/christmas.dm +++ b/code/modules/holiday/christmas.dm @@ -6,8 +6,10 @@ new /obj/item/a_gift(T) for(var/mob/living/simple_animal/pet/corgi/Ian/Ian in GLOB.mob_list) Ian.place_on_head(new /obj/item/clothing/head/helmet/space/santahat(Ian)) - var/datum/supply_packs/xmas = SSshuttle.supply_packs["[/datum/supply_packs/misc/snow_machine]"] //Snow! - xmas.special_enabled = TRUE +//The following spawn is necessary as both the timer and the shuttle systems initialise after the events system does, so we can't add stuff to the shuttle system as it doesn't exist yet and we can't use a timer + spawn(60 SECONDS) + var/datum/supply_packs/xmas = SSshuttle.supply_packs["[/datum/supply_packs/misc/snow_machine]"] + xmas.special_enabled = TRUE /datum/holiday/xmas/handle_event() spawnTree()