From 628c37e29e7297eb07e0938c29f1036b2acef0fb Mon Sep 17 00:00:00 2001 From: Tim Date: Wed, 19 Aug 2015 15:49:32 +0200 Subject: [PATCH] replace several explicit nodebox definitions with the function-version --- homedecor/bathroom_sanitation.lua | 5 +---- homedecor/climate-control.lua | 6 +----- homedecor/misc-nodes.lua | 4 ++-- 3 files changed, 4 insertions(+), 11 deletions(-) diff --git a/homedecor/bathroom_sanitation.lua b/homedecor/bathroom_sanitation.lua index 9628721d..b83e69a8 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 cd495640..c9451851 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 1cab08da..333961e4 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