From c66487d0bea99c7bdf74d9da060159a94c2c60d3 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: Thu, 16 May 2024 15:46:04 +0800 Subject: [PATCH] fix --- 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 10100159..907911df 100644 --- a/LunaTranslator/LunaTranslator/textsource/texthook.py +++ b/LunaTranslator/LunaTranslator/textsource/texthook.py @@ -336,7 +336,7 @@ class texthook(basetext): self.hooktypecollecter[key] = 1 break if self.isremoveuseless: - if hc not in [_[-1] for _ in self.autostarthookcode]: + if hc not in [_[0] for _ in self.autostarthookcode]: self.Luna_RemoveHook(tp.processId, tp.addr) return False