From 12b294eda3ff19e89171f16d47ded6deba309fc2 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Tue, 14 Mar 2017 02:43:48 +0100 Subject: [PATCH] Improve connected stem selection boxes --- mods/ITEMS/mcl_farming/shared_functions.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/mods/ITEMS/mcl_farming/shared_functions.lua b/mods/ITEMS/mcl_farming/shared_functions.lua index 23ecf0aac6..e88bdd06a0 100644 --- a/mods/ITEMS/mcl_farming/shared_functions.lua +++ b/mods/ITEMS/mcl_farming/shared_functions.lua @@ -151,6 +151,12 @@ function mcl_farming:add_gourd(full_unconnected_stem, connected_stem_basename, s {0, -0.5, -0.5, 0, 0.5, 0.5}, {0, -0.5, -0.5, 0, 0.5, 0.5}, } + local connected_stem_selectionbox = { + {-0.1, -0.5, -0.1, 0.5, 0.2, 0.1}, + {-0.5, -0.5, -0.1, 0.1, 0.2, 0.1}, + {-0.1, -0.5, -0.1, 0.1, 0.2, 0.5}, + {-0.1, -0.5, -0.5, 0.1, 0.2, 0.1}, + } for i=1, 4 do minetest.register_node(connected_stem_names[i], { @@ -167,7 +173,7 @@ function mcl_farming:add_gourd(full_unconnected_stem, connected_stem_basename, s }, selection_box = { type = "fixed", - fixed = {-0.2, -0.5, -0.2, 0.2, 0.2, 0.2} + fixed = connected_stem_selectionbox[i] }, tiles = connected_stem_tiles[i], groups = {dig_immediate=3, not_in_creative_inventory=1 ,dig_by_water=1},