From e0156a41de87bfe6356c6f9bbc6ce819674cdae5 Mon Sep 17 00:00:00 2001 From: reidlab Date: Sat, 1 Mar 2025 23:53:40 -0800 Subject: [PATCH] be more consistent with event handling --- scripts/nameplate.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/nameplate.lua b/scripts/nameplate.lua index 1ed2a1c..93c749b 100644 --- a/scripts/nameplate.lua +++ b/scripts/nameplate.lua @@ -6,7 +6,7 @@ local speed = 0.05 colors[#colors + 1] = colors[1] offset = offset / speed -function events.tick() +events.TICK:register(function () local newName = "[" for i = 1, #name, 1 do @@ -19,4 +19,4 @@ function events.tick() newName = newName:sub(1, #newName - 1) .. "]" nameplate.ALL:setText(newName) -end +end)