From 8c1637a6599853dd9ceb07b73904d381241ec768 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lilian=20J=C3=B3nsd=C3=B3ttir?= Date: Sat, 11 Sep 2021 16:53:41 -0700 Subject: [PATCH] weird formatting --- MWSE/mods/celediel/MoreAttentiveGuards/mcm.lua | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/MWSE/mods/celediel/MoreAttentiveGuards/mcm.lua b/MWSE/mods/celediel/MoreAttentiveGuards/mcm.lua index aaf902f..679a442 100644 --- a/MWSE/mods/celediel/MoreAttentiveGuards/mcm.lua +++ b/MWSE/mods/celediel/MoreAttentiveGuards/mcm.lua @@ -157,15 +157,16 @@ template:createExclusionsPage({ description = "Members of these factions will not help the player in combat", showAllBlocked = false, filters = { - { label = "Factions", callback = function() - local factions = {} + { + label = "Factions", + callback = function() + local factions = {} - for _, faction in pairs(tes3.dataHandler.nonDynamicData.factions) do - table.insert(factions, faction.id) + for _, faction in pairs(tes3.dataHandler.nonDynamicData.factions) do table.insert(factions, faction.id) end + + return factions end - - return factions - end } + } }, variable = createTableVar("ignoredFactions") })