From 7c302d0874307afd293edb995646ae2982775474 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Wed, 12 Dec 2012 14:32:24 -0500 Subject: [PATCH] Fixed selection boxes on fences - they should have been only the fencepost, not the whole node :-) --- fence.lua | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/fence.lua b/fence.lua index ab76604..0095d84 100644 --- a/fence.lua +++ b/fence.lua @@ -118,7 +118,11 @@ for shade = 1, 3 do paramtype = "light", walkable = colored_block_walkable, groups = colored_block_groups, - sounds = colored_block_sound + sounds = colored_block_sound, + selection_box = { + type = "fixed", + fixed = {-1/7, -1/2, -1/7, 1/7, 1/2, 1/7}, + }, }) minetest.register_node(s50colorname, { @@ -131,7 +135,11 @@ for shade = 1, 3 do paramtype = "light", walkable = colored_block_walkable, groups = colored_block_groups, - sounds = colored_block_sound + sounds = colored_block_sound, + selection_box = { + type = "fixed", + fixed = {-1/7, -1/2, -1/7, 1/7, 1/2, 1/7}, + }, }) minetest.register_craft({ @@ -228,7 +236,11 @@ for hue = 1, 12 do paramtype = "light", walkable = colored_block_walkable, groups = colored_block_groups, - sounds = colored_block_sound + sounds = colored_block_sound, + selection_box = { + type = "fixed", + fixed = {-1/7, -1/2, -1/7, 1/7, 1/2, 1/7}, + }, }) minetest.register_craft({ @@ -297,7 +309,11 @@ for grey = 1,5 do paramtype = "light", walkable = colored_block_walkable, groups = colored_block_groups, - sounds = colored_block_sound + sounds = colored_block_sound, + selection_box = { + type = "fixed", + fixed = {-1/7, -1/2, -1/7, 1/7, 1/2, 1/7}, + }, }) minetest.register_craft({