From 94c7eb42159a54ffecb63fae7e4002ff0d31ca85 Mon Sep 17 00:00:00 2001 From: hjpalpha <75081997+hjpalpha@users.noreply.github.com> Date: Mon, 18 Sep 2023 14:56:55 +0200 Subject: [PATCH] Make faction module usable from invoke (#3292) --- components/faction/commons/faction.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/faction/commons/faction.lua b/components/faction/commons/faction.lua index 9bcb9c61cd8..5fd9efea306 100644 --- a/components/faction/commons/faction.lua +++ b/components/faction/commons/faction.lua @@ -7,6 +7,7 @@ -- local Array = require('Module:Array') +local Class = require('Module:Class') local Data = mw.loadData('Module:Faction/Data') local Lua = require('Module:Lua') local String = require('Module:StringUtils') @@ -159,4 +160,4 @@ function Faction.bgClass(faction) return factionProps and factionProps.bgClass or nil end -return Faction +return Class.export(Faction)