mirror of
https://github.com/minetest-mods/unifiedbricks.git
synced 2024-11-19 22:13:51 +01:00
exit conversion LBM gracefully if brick color can't be looked up
This commit is contained in:
parent
d77d445edf
commit
49ded63965
1
init.lua
1
init.lua
@ -311,6 +311,7 @@ minetest.register_lbm({
|
||||
if color2 == "_grey" then color2 = "grey" end
|
||||
|
||||
local paletteidx, hue = unifieddyes.getpaletteidx("unifieddyes:"..color2, "extended")
|
||||
if not paletteidx or not hue then return end
|
||||
|
||||
if string.find(type, "multicolor") then
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user