From 7c146b4c86408e5fd0cf2e19e4702ff3f2a4fefa Mon Sep 17 00:00:00 2001 From: Dusk-92 Date: Sun, 23 Aug 2026 21:52:47 +0200 Subject: [PATCH] Keep rgbhex temporaries local --- helpers.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/helpers.lua b/helpers.lua index 848bafa..15468a2 100644 --- a/helpers.lua +++ b/helpers.lua @@ -200,6 +200,8 @@ ShaguTweaks.strsplit = function(delimiter, subject) end ShaguTweaks.rgbhex = function(r, g, b, a) + local _r, _g, _b, _a + if type(r) == "table" then if r.r then _r, _g, _b, _a = r.r, r.g, r.b, (r.a or 1) @@ -381,4 +383,4 @@ ShaguTweaks.GetItemLinkByName = function(name) return hyperLink end end -end +end \ No newline at end of file