From 35e928bbb7ed5729cb33c6502e41bebca2dda339 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sun, 14 May 2017 23:12:22 +0200 Subject: [PATCH] Fix confused farmland wettening height --- mods/ITEMS/mcl_farming/soil.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/ITEMS/mcl_farming/soil.lua b/mods/ITEMS/mcl_farming/soil.lua index 8a7751638..4c5882ee1 100644 --- a/mods/ITEMS/mcl_farming/soil.lua +++ b/mods/ITEMS/mcl_farming/soil.lua @@ -72,9 +72,9 @@ minetest.register_abm({ end end - -- Check an area of 9×2×9 around the node for nodename + -- Check an area of 9×2×9 around the node for nodename (9×9 on same level and 9×9 below) local check_surroundings = function(pos, nodename) - local nodes = minetest.find_nodes_in_area({x=pos.x-4,y=pos.y-1,z=pos.z-4}, {x=pos.x+4,y=pos.y,z=pos.z+4}, {nodename}) + local nodes = minetest.find_nodes_in_area({x=pos.x-4,y=pos.y,z=pos.z-4}, {x=pos.x+4,y=pos.y+1,z=pos.z+4}, {nodename}) return #nodes > 0 end