forked from mtcontrib/homedecor_modpack
check for presence of moreblocks before overriding empty bookshelf
This commit is contained in:
parent
2e4dce266f
commit
d9f56ea229
@ -56,7 +56,8 @@ minetest.override_item("default:bookshelf", {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.override_item("moreblocks:empty_bookshelf", {
|
if minetest.get_modpath("moreblocks") then
|
||||||
|
minetest.override_item("moreblocks:empty_bookshelf", {
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
tiles = {
|
tiles = {
|
||||||
"3dbookshelf_top.png",
|
"3dbookshelf_top.png",
|
||||||
@ -79,4 +80,5 @@ minetest.override_item("moreblocks:empty_bookshelf", {
|
|||||||
{-0.5, -0.0625, -0.5, 0.5, 0.0625, 0.5}, -- NodeBox6
|
{-0.5, -0.0625, -0.5, 0.5, 0.0625, 0.5}, -- NodeBox6
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user