runAfterLoad to hopefully reduce "eLiStS.fAiRy NoT dEfInED" errors

This commit is contained in:
Laetitia (O-01-67) 2022-11-17 09:58:41 -05:00 committed by GitHub
parent d17f4c2764
commit 3295f32bc9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 3 deletions

View File

@ -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;