mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-20 04:26:03 +01:00
Fix halloweens races (#70874)
* Fixes halloween races. - Fixes a race condition involve checking for holidays befores SSevents is instantiated. Now, holiday checking is done through a helper, which will ensure the holidays list is created and filled before checked.
This commit is contained in:
@@ -20,9 +20,9 @@ MAPPING_DIRECTIONAL_HELPERS(/obj/structure/sign/calendar, 32)
|
||||
/obj/structure/sign/calendar/examine(mob/user)
|
||||
. = ..()
|
||||
. += span_info("The current date is: [time2text(world.realtime, "DDD, MMM DD")], [CURRENT_STATION_YEAR].")
|
||||
if(SSevents.holidays)
|
||||
if(length(GLOB.holidays))
|
||||
. += span_info("Events:")
|
||||
for(var/holidayname in SSevents.holidays)
|
||||
for(var/holidayname in GLOB.holidays)
|
||||
. += span_info("[holidayname]")
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user