forked from minetest-mods/unifiedbricks
Fix crash with LBM
This commit is contained in:
parent
304579a8ca
commit
f116c1d6cf
4
init.lua
4
init.lua
@ -659,6 +659,10 @@ minetest.register_lbm({
|
|||||||
color = ""
|
color = ""
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if color == "_black" or color == "_white" or color == "_dark_grey" then
|
||||||
|
color = "_grey"
|
||||||
|
end
|
||||||
|
|
||||||
minetest.set_node(pos, { name = "unifiedbricks:"..class.."stonebrick"..color..shape, param2 = paletteidx+old_param2 })
|
minetest.set_node(pos, { name = "unifiedbricks:"..class.."stonebrick"..color..shape, param2 = paletteidx+old_param2 })
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user