From 65b7e44175315bb7c13981c74a5fefb7274eac1a Mon Sep 17 00:00:00 2001 From: crabman77 Date: Sat, 25 Jul 2015 01:49:41 +0200 Subject: [PATCH] fixed catus grow on watershed:drygrass --- minetestforfun_game/mods/default/functions.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/minetestforfun_game/mods/default/functions.lua b/minetestforfun_game/mods/default/functions.lua index 1301210e..5d7cf451 100755 --- a/minetestforfun_game/mods/default/functions.lua +++ b/minetestforfun_game/mods/default/functions.lua @@ -228,7 +228,8 @@ function default.grow_cactus(pos, node) return end pos.y = pos.y - 1 - if minetest.get_item_group(minetest.get_node(pos).name, "sand") == 0 then + local name = minetest.get_node(pos).name + if minetest.get_item_group(name, "sand") == 0 and name ~= "watershed:drygrass" then return end pos.y = pos.y + 1 @@ -270,7 +271,7 @@ end minetest.register_abm({ nodenames = {"default:cactus"}, - neighbors = {"group:sand"}, + neighbors = {"group:sand", "watershed:drygrass"}, interval = 60, chance = 25, action = function(...)