mirror of
https://github.com/minetest-mods/unifiedbricks.git
synced 2025-07-19 00:30:29 +02:00
Fix crash with LBM
This commit is contained in:
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
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user