Do not run hack in /obj/structure/closet if not mapload (#13) (#16201)

Co-authored-by: Simon Ogorodnik <simon.ogorodnik@gmail.com>
This commit is contained in:
Aziz Chynaliev
2021-06-18 18:41:05 +03:00
committed by GitHub
parent 5fb2ccbcfc
commit acfcce6728
@@ -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,