diff --git a/homedecor/bathroom_sanitation.lua b/homedecor/bathroom_sanitation.lua index 9628721..b83e69a 100644 --- a/homedecor/bathroom_sanitation.lua +++ b/homedecor/bathroom_sanitation.lua @@ -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) diff --git a/homedecor/climate-control.lua b/homedecor/climate-control.lua index cd49564..c945185 100644 --- a/homedecor/climate-control.lua +++ b/homedecor/climate-control.lua @@ -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 = { diff --git a/homedecor/misc-nodes.lua b/homedecor/misc-nodes.lua index 1cab08d..333961e 100644 --- a/homedecor/misc-nodes.lua +++ b/homedecor/misc-nodes.lua @@ -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