[MIRROR] Fixes emotes not initializing on start (#11220)

Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-07-22 08:43:14 -07:00
committed by GitHub
parent 783441e769
commit e0d56115c4

View File

@@ -5,7 +5,7 @@
// - Impaired messages do not do any substitutions.
/proc/get_emote_by_key(var/key)
if(!GLOB.emotes_by_key)
if(!LAZYLEN(GLOB.emotes_by_key))
decls_repository.get_decls_of_type(/decl/emote) // GLOB.emotes_by_key will be updated in emote Initialize()
return GLOB.emotes_by_key[key]