From ffd3edc22b9c649e7ae8e229d5050d1d9490dfa8 Mon Sep 17 00:00:00 2001 From: Kyle Spier-Swenson Date: Tue, 14 Mar 2023 15:18:55 -0700 Subject: [PATCH] admins can use the spawner component again (#73976) Not playing code vanity project with this shit. Do not require data that just gets stored on a var to be passed via the stack. --------- Co-authored-by: san7890 --- code/datums/components/spawner.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/datums/components/spawner.dm b/code/datums/components/spawner.dm index 951aa95b17a..4b0122571f2 100644 --- a/code/datums/components/spawner.dm +++ b/code/datums/components/spawner.dm @@ -15,8 +15,8 @@ COOLDOWN_DECLARE(spawn_delay) /datum/component/spawner/Initialize(mob_types = list(), spawn_time = 30 SECONDS, max_mobs = 5, faction = list(FACTION_MINING), spawn_text = "emerges from") - if (!length(mob_types)) - CRASH("No types of mob to spawn specified for spawner component!") + if (!islist(mob_types)) + CRASH("invalid mob_types to spawn specified for spawner component!") src.spawn_time = spawn_time src.mob_types = mob_types src.faction = faction