From 64a7c9402ef2f4fff4d128d308d580c9386ba70b Mon Sep 17 00:00:00 2001 From: hdastwb Date: Thu, 27 Jun 2013 14:08:51 -0400 Subject: [PATCH] added an exception to the solid node condition in reverting soil to dirt This will make it possible to grow solid plants such as pumpkins (with the addition of a plant group to their specification). --- mods/farming/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/farming/init.lua b/mods/farming/init.lua index 3c378015..28192460 100644 --- a/mods/farming/init.lua +++ b/mods/farming/init.lua @@ -30,7 +30,7 @@ minetest.register_abm({ pos.y = pos.y+1 local nn = minetest.get_node(pos).name pos.y = pos.y-1 - if minetest.registered_nodes[nn] and minetest.registered_nodes[nn].walkable then + if minetest.registered_nodes[nn] and minetest.registered_nodes[nn].walkable and not minetest.registered_nodes[nn].groups.plant then minetest.set_node(pos, {name="default:dirt"}) end -- check if there is water nearby