futureproof the RegisterMod overwrite

This commit is contained in:
Buurazu authored and GitHub committed 2022-01-15 19:49:33 -05:00
1 parent 310268e3de
commit c93cd80a4c
1 file changed
+3 -3
+3 -3
View File
@@ -65,10 +65,10 @@ EID.ModIndicator = { }
-- Useful to associate items to mods
EID._currentMod = ""
local OldRegisterMod = RegisterMod
RegisterMod = function (modName, apiVersion)
RegisterMod = function (modName, apiVersion, ...)
EID._currentMod = modName
EID.ModIndicator[modName] = { Name = modName, Icon = nil }
return OldRegisterMod(modName, apiVersion)
return OldRegisterMod(modName, apiVersion, ...)
end
------- Load all modules and other stuff ------
@@ -1176,4 +1176,4 @@ end
if EID.enableDebug then
require("eid_debugging")
end
end