From b9c5f26d0992ea3fc8bf611f000975860c58ce34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=A6=AC=EC=85=B0?= <37092106+kohashiwakaba@users.noreply.github.com> Date: Fri, 27 Oct 2023 16:38:15 +0900 Subject: [PATCH] fix critical issue that prevent mod running with luadebug flag (#595) --- main.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.lua b/main.lua index be75108d..898bec97 100644 --- a/main.lua +++ b/main.lua @@ -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, "")