From acfcce672880b51fd4061ba818340d99a5a02d69 Mon Sep 17 00:00:00 2001 From: Aziz Chynaliev Date: Fri, 18 Jun 2021 18:41:05 +0300 Subject: [PATCH] Do not run hack in /obj/structure/closet if not mapload (#13) (#16201) Co-authored-by: Simon Ogorodnik --- code/game/objects/structures/crates_lockers/closets.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/game/objects/structures/crates_lockers/closets.dm b/code/game/objects/structures/crates_lockers/closets.dm index 741afa2738b..6fe17b0eeff 100644 --- a/code/game/objects/structures/crates_lockers/closets.dm +++ b/code/game/objects/structures/crates_lockers/closets.dm @@ -27,7 +27,7 @@ // Please dont override this unless you absolutely have to /obj/structure/closet/Initialize(mapload) . = ..() - if(!opened) + if(mapload && !opened) // Youre probably asking, why is this a 0 seconds timer AA? // Well, I will tell you. One day, all /obj/effect/spawner will use Initialize // This includes maint loot spawners. The problem with that is if a closet loads before a spawner,