From b3cd8e45fbd5430cfb56e315f18aec4ac2fab8b5 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Fri, 2 Jan 2015 04:41:01 -0500 Subject: [PATCH] shorten globe coll/sel box code a bit --- homedecor/misc-nodes.lua | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/homedecor/misc-nodes.lua b/homedecor/misc-nodes.lua index 4b413648..fdf8df62 100644 --- a/homedecor/misc-nodes.lua +++ b/homedecor/misc-nodes.lua @@ -1926,6 +1926,11 @@ minetest.register_node("homedecor:calendar", { sounds = default.node_sound_defaults(), }) +local globe_cbox = { + type = "fixed", + fixed = { -0.4, -0.5, -0.3, 0.3, 0.3, 0.3 } +} + minetest.register_node("homedecor:desk_globe", { description = "Desk globe", drawtype = "mesh", @@ -1934,14 +1939,8 @@ minetest.register_node("homedecor:desk_globe", { inventory_image = "homedecor_desk_globe_inv.png", paramtype = "light", paramtype2 = "facedir", - selection_box = { - type = "fixed", - fixed = { -0.4, -0.5, -0.3, 0.3, 0.3, 0.3 } - }, - collision_box = { - type = "fixed", - fixed = { -0.4, -0.5, -0.3, 0.3, 0.3, 0.3 } - }, + selection_box = globe_cbox, + collision_box = globe_cbox, groups = {choppy=2}, sounds = default.node_sound_defaults(), })