register lom-nodeboxes only when ethereal mod is detected

This commit is contained in:
Milan* 2017-03-20 22:34:18 +01:00
parent f0c10c432f
commit c3454c1b77

View File

@ -197,8 +197,8 @@ minetest.register_node("illuna:lw_instructions", {
})
-- nodeboxes by https://github.com/D00Med/LegendofMinetest
minetest.override_item("default:furnace", {
if minetest.get_modpath("ethereal") then
minetest.override_item("default:furnace", {
drawtype = "nodebox",
paramtype = "light",
node_box = {
@ -214,9 +214,9 @@ minetest.override_item("default:furnace", {
{-0.5, -0.5, -0.375, 0.5, 0.3125, 0.5}, -- NodeBox8
}
},
})
})
minetest.override_item("default:chest_locked", {
minetest.override_item("default:chest_locked", {
paramtype = "light",
drawtype = "nodebox",
node_box = {
@ -228,10 +228,10 @@ minetest.override_item("default:chest_locked", {
{-0.5, 0.4375, -0.3125, 0.5, 0.5, 0.3125}, -- NodeBox4
}
},
})
})
minetest.override_item("default:chest", {
minetest.override_item("default:chest", {
paramtype = "light",
drawtype = "nodebox",
node_box = {
@ -243,4 +243,5 @@ minetest.override_item("default:chest", {
{-0.5, 0.4375, -0.3125, 0.5, 0.5, 0.3125}, -- NodeBox4
}
},
})
})
end