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 } { 0.45, -0.45, -0.45, 0.5, -0.4, 0.45 }
}, },
}, },
selection_box = { selection_box = homedecor.nodebox.slab_y(0.1),
type = "fixed",
fixed = { -0.5, -0.5, -0.5, 0.5, -0.4, 0.5 },
},
groups = {cracky=2}, groups = {cracky=2},
sounds = default.node_sound_stone_defaults(), sounds = default.node_sound_stone_defaults(),
on_destruct = function(pos) on_destruct = function(pos)

View File

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

View File

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