From 3295f32bc9c2a35b664b3ac7f8f1ce43af81b076 Mon Sep 17 00:00:00 2001 From: "Laetitia (O-01-67)" <68935009+O-01-67@users.noreply.github.com> Date: Thu, 17 Nov 2022 09:58:41 -0500 Subject: [PATCH] runAfterLoad to hopefully reduce "eLiStS.fAiRy NoT dEfInED" errors --- mods/more_fairies.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/mods/more_fairies.js b/mods/more_fairies.js index 9bd31c24..e3eccda8 100644 --- a/mods/more_fairies.js +++ b/mods/more_fairies.js @@ -289,9 +289,11 @@ if(enabledMods.includes(runAfterAutogenMod) && enabledMods.includes(libraryMod) //Post-generation tasks //Manual eLists.FAIRY updates - eLists.FAIRY.push("acid_fairy"); - eLists.FAIRY.push("oil_fairy"); - eLists.FAIRY.push("honey_fairy"); + runAfterLoad(function() { + eLists.FAIRY.push("acid_fairy"); + eLists.FAIRY.push("oil_fairy"); + eLists.FAIRY.push("honey_fairy"); + }); //Revamp fairykill behaviors.FAIRYKILL_OLD = behaviors.FAIRYKILL;