Skip to content

Commit

Permalink
exit conversion LBM gracefully if brick color can't be looked up
Browse files Browse the repository at this point in the history
  • Loading branch information
VanessaE committed May 12, 2018
1 parent d77d445 commit 49ded63
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions init.lua
Expand Up @@ -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

Expand Down

0 comments on commit 49ded63

Please sign in to comment.