From a7e40050d03cd45c388c76eb2341dc6912865e19 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Fri, 17 Feb 2017 23:39:23 +0100 Subject: [PATCH] Fix sugar cane growth rules: Surface, water dist. - It also grows on coarse dirt, (red) sand, podzol - Water distance reduced to 1 --- mods/ITEMS/mcl_core/functions.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/ITEMS/mcl_core/functions.lua b/mods/ITEMS/mcl_core/functions.lua index 70fd539e48..4779b78560 100644 --- a/mods/ITEMS/mcl_core/functions.lua +++ b/mods/ITEMS/mcl_core/functions.lua @@ -57,7 +57,7 @@ mcl_core.grow_reeds = function(pos, node) pos.y = pos.y-1 local name = minetest.get_node(pos).name if minetest.get_node_group(name, "soil_sugarcane") ~= 0 then - if minetest.find_node_near(pos, 3, {"group:water"}) == nil then + if minetest.find_node_near(pos, 1, {"group:water"}) == nil then return end pos.y = pos.y+1 @@ -135,7 +135,7 @@ minetest.register_abm({ minetest.register_abm({ nodenames = {"mcl_core:reeds"}, - neighbors = {"mcl_core:dirt", "mcl_core:dirt_with_grass"}, + neighbors = {"group:soil_sugarcane"}, interval = 25, chance = 10, action = function(pos)