This commit is contained in:
luk3yx 2021-03-24 20:26:56 +13:00
parent c9fffbf642
commit 936f665017
1 changed files with 1 additions and 1 deletions

View File

@ -18,6 +18,7 @@ local colorstring_to_number
local function colorstring_to_number_fallback(col)
colorstring_to_number_fallback = dofile(minetest.get_modpath(modname) ..
"/colorstring_to_number.lua")
colorstring_to_number = colorstring_to_number_fallback
return colorstring_to_number_fallback(col)
end
@ -29,7 +30,6 @@ if minetest.colorspec_to_colorstring then
minetest.log("warning", ("[hud_fs] Unexpected value returned by" ..
" minetest.colorspec_to_colorstring(%q): %q"):format(col,
res))
colorstring_to_number = colorstring_to_number_fallback
return colorstring_to_number_fallback(col)
end
return res and tonumber(res:sub(2, 7), 16)