fix critical issue that prevent mod running with luadebug flag (#595)

This commit is contained in:
리셰 authored and GitHub committed 2023-10-27 09:38:15 +02:00
1 parent 301adea1cf
commit b9c5f26d09
1 file changed
+1 -1
+1 -1
View File
@@ -138,7 +138,7 @@ local modfolder ='external item descriptions_836319872' --release mod folder nam
function EID:GetCurrentModPath()
if debug then
if EID.isRepentance then require("eid_tmtrainer") end
return string.sub(debug.getinfo(EID:GetCurrentModPath()).source,2) .. "/../"
return string.sub(debug.getinfo(EID.GetCurrentModPath).source,2) .. "/../"
end
--use some very hacky trickery to get the path to this mod
local _, err = pcall(require, "")