futureproof the RegisterMod overwrite
This commit is contained in:
1 parent
310268e3de
commit
c93cd80a4c
1 file changed
+2
-2
@@ -65,10 +65,10 @@ EID.ModIndicator = { }
|
|||||||
-- Useful to associate items to mods
|
-- Useful to associate items to mods
|
||||||
EID._currentMod = ""
|
EID._currentMod = ""
|
||||||
local OldRegisterMod = RegisterMod
|
local OldRegisterMod = RegisterMod
|
||||||
RegisterMod = function (modName, apiVersion)
|
RegisterMod = function (modName, apiVersion, ...)
|
||||||
EID._currentMod = modName
|
EID._currentMod = modName
|
||||||
EID.ModIndicator[modName] = { Name = modName, Icon = nil }
|
EID.ModIndicator[modName] = { Name = modName, Icon = nil }
|
||||||
return OldRegisterMod(modName, apiVersion)
|
return OldRegisterMod(modName, apiVersion, ...)
|
||||||
end
|
end
|
||||||
|
|
||||||
------- Load all modules and other stuff ------
|
------- Load all modules and other stuff ------
|
||||||
|
|||||||
Reference in new issue
Block a user