From c93cd80a4c04ee58710f3de0738d2bacfb0742bd Mon Sep 17 00:00:00 2001 From: Buurazu Date: Sat, 15 Jan 2022 19:49:33 -0500 Subject: [PATCH] futureproof the RegisterMod overwrite --- main.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.lua b/main.lua index ef790919..ee3a4358 100644 --- a/main.lua +++ b/main.lua @@ -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 \ No newline at end of file +end