From a1616f91307641f9f2df22d82d4713ffbdfdb985 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <101191390+HIllya51@users.noreply.github.com> Date: Sat, 3 Feb 2024 21:09:59 +0800 Subject: [PATCH] Update texthook.py --- LunaTranslator/LunaTranslator/textsource/texthook.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LunaTranslator/LunaTranslator/textsource/texthook.py b/LunaTranslator/LunaTranslator/textsource/texthook.py index 59bac865..5085eada 100644 --- a/LunaTranslator/LunaTranslator/textsource/texthook.py +++ b/LunaTranslator/LunaTranslator/textsource/texthook.py @@ -210,7 +210,7 @@ class texthook(basetext ): self.useembed(addr,_ctx1,_ctx2,True) def getembedtext(self,text,tp): if globalconfig['autorun']==False: - self.embedcallback(text,0,text) + self.embedcallback(text,text) return if self.checkisusingembed(tp.addr,tp.ctx,tp.ctx2): self.newline.put((text,False, functools.partial(self.embedcallback,text),True))