Fix color check

This commit is contained in:
Insality 2025-06-19 20:24:57 +03:00
parent a8aea0adee
commit 3606c9f49f

View File

@ -11,7 +11,7 @@ local M = {}
---@param color_id string|vector4 Color id from palette or hex color ---@param color_id string|vector4 Color id from palette or hex color
---@return vector4 ---@return vector4
function M.get_color(color_id) function M.get_color(color_id)
if type(color_id) == "vector4" then if type(color_id) ~= "string" then
return color_id return color_id
end end