Fix color utilitiees: fix colorspec_to_table annotation, change ColorString & ColorSpec type (class -> alias)

This commit is contained in:
Van
2026-01-14 16:42:25 +03:00
parent 138ceae165
commit d5d4fec0c3
2 changed files with 3 additions and 3 deletions

View File

@@ -365,5 +365,5 @@ function minetest.colorspec_to_bytes(colorspec) end
--- Converts a ColorSpec into RGBA table form. If the ColorSpec is invalid, returns nil. You can use this to parse ColorStrings.
--- @param colorspec ColorSpec The ColorSpec to convert.
--- @return {r:number, g:number, b:string, a:number}?
--- @return {r:number, g:number, b:number, a:number}?
function minetest.colorspec_to_table(colorspec) end