futureproof the RegisterMod overwrite
This commit is contained in:
1 parent
310268e3de
commit
c93cd80a4c
1 file changed
+3
-3
@@ -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
|
||||
Reference in new issue
Block a user