replace several explicit nodebox definitions with the function-version

This commit is contained in:
Tim 2015-08-19 15:49:32 +02:00
parent 91092d99be
commit 628c37e29e
3 changed files with 4 additions and 11 deletions

View File

@ -195,10 +195,7 @@ homedecor.register("shower_tray", {
{ 0.45, -0.45, -0.45, 0.5, -0.4, 0.45 }
},
},
selection_box = {
type = "fixed",
fixed = { -0.5, -0.5, -0.5, 0.5, -0.4, 0.5 },
},
selection_box = homedecor.nodebox.slab_y(0.1),
groups = {cracky=2},
sounds = default.node_sound_stone_defaults(),
on_destruct = function(pos)

View File

@ -145,11 +145,7 @@ homedecor.register("space_heater", {
}
})
local r_cbox = {
type = "fixed",
fixed = { -0.5, -0.5, 0.25, 0.5, 0.5, 0.5 }
}
local r_cbox = homedecor.nodebox.slab_z(-0.25)
homedecor.register("radiator", {
mesh = "homedecor_radiator.obj",
tiles = {

View File

@ -26,8 +26,8 @@ homedecor.register("ceiling_tile", {
local rug_types = {
{ "small", "homedecor_small_rug.obj" },
{ "large", { -0.5, -0.5, -0.5, 0.5, -0.4375, 0.5 } },
{ "persian", { -0.5, -0.5, -0.5, 0.5, -0.4375, 0.5 } }
{ "large", homedecor.box.slab_y(0.0625)},
{ "persian", homedecor.box.slab_y(0.0625)}
}
for i in ipairs(rug_types) do