From 414364d0ca85c3c171f9fc45b516e6aeb4e38ad8 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Wed, 15 Apr 2015 18:58:33 -0400 Subject: [PATCH] better selectbox for coatrack --- homedecor/misc-nodes.lua | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/homedecor/misc-nodes.lua b/homedecor/misc-nodes.lua index 382aa99..fa064a7 100644 --- a/homedecor/misc-nodes.lua +++ b/homedecor/misc-nodes.lua @@ -344,7 +344,13 @@ homedecor.register("coatrack_wallmount", { local ct_cbox = { type = "fixed", - fixed = { -0.5, -0.5, -0.5, 0.5, 1.5, 0.5 } + fixed = { + { -8/16, 18/16, -8/16, 8/16, 22/16, 8/16 }, + { -4/16, 12/16, -4/16, 4/16, 18/16, 4/16 }, + { -10/32, 10/16, -10/32, 10/32, 12/16, 10/32 }, + { -1/16, 1/16, -1/16, 1/16, 10/16, 1/16 }, + { -10/32, -8/16, -10/32, 10/32, 1/16, 10/32 } + } } homedecor.register("coat_tree", { @@ -358,7 +364,7 @@ homedecor.register("coat_tree", { groups = {snappy=3}, expand = { top="air" }, selection_box = ct_cbox, - collision_box = ct_cbox, + node_box = ct_cbox, }) local cutlery_cbox = {