From 19046de0e71e30481bb9f3ce2240564f01350556 Mon Sep 17 00:00:00 2001 From: michael Date: Sat, 3 Oct 2026 16:09:20 -0400 Subject: [PATCH] =?UTF-8?q?fix:=20Lua=20functions=20don't=20accept=20ad-ho?= =?UTF-8?q?c=20fields=20=E2=80=94=20dropped=20the=20marker=20stamp=20that?= =?UTF-8?q?=20threw=20every=20hack=20tick=20(safe=5Fhook=20spam,=20412x);?= =?UTF-8?q?=20call-site=20check=20now=20compares=20rawset=20identity=20aga?= =?UTF-8?q?inst=20stored=20patched=20fn=20ref?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AutoMark/scripts/mods/AutoMark/mark/servo_skull_mark.lua | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/AutoMark/scripts/mods/AutoMark/mark/servo_skull_mark.lua b/AutoMark/scripts/mods/AutoMark/mark/servo_skull_mark.lua index dc8111a..2311a55 100644 --- a/AutoMark/scripts/mods/AutoMark/mark/servo_skull_mark.lua +++ b/AutoMark/scripts/mods/AutoMark/mark/servo_skull_mark.lua @@ -79,7 +79,7 @@ local function ensure_automark_tag_hook() return orig_set_tag(self, template_name, tagger_unit, target_unit, target_location) end rawset(smart_tag_system, "set_tag", patched.set_tag) - patched.set_tag.omni_hook_marker = true + mod.omni_hack_patched_fn = patched.set_tag mod.omni_hack_patched_sys = smart_tag_system if mod_settings.debug_mode then mod:diag("OMNI-HACK-DIAG set_tag instance-shadow INSTALLED marker=", tostring(rawget(smart_tag_system, "set_tag") == patched.set_tag)) @@ -395,11 +395,7 @@ function mod:auto_hack(dt, t, fixed_frame) end if mod_settings.debug_mode and not mod.omni_hack_ptr_logged then mod.omni_hack_ptr_logged = true - local marker - pcall(function() - marker = smart_tag_system.set_tag.omni_hook_marker - end) - mod:diag("OMNI-HACK-DIAG call-site marker_on_calling_fn=", tostring(marker), " hook_calls_before_this=", tostring(mod.omni_hack_hook_count)) + mod:diag("OMNI-HACK-DIAG call-site shadow_on_instance=", tostring(rawget(smart_tag_system, "set_tag") == mod.omni_hack_patched_fn), " hook_calls_before_this=", tostring(mod.omni_hack_hook_count)) end local target_tag = smart_tag_system:unit_tag(target_unit)