From 5907d431791d5d40d13f9fb1c65aca607b3d00de Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Fri, 19 May 2017 13:22:29 +0200 Subject: [PATCH] Reset farmland, etc. to dirt when gourd grows on top --- mods/ITEMS/mcl_farming/shared_functions.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/ITEMS/mcl_farming/shared_functions.lua b/mods/ITEMS/mcl_farming/shared_functions.lua index ac9eb6afa2..2bcf29b880 100644 --- a/mods/ITEMS/mcl_farming/shared_functions.lua +++ b/mods/ITEMS/mcl_farming/shared_functions.lua @@ -343,8 +343,8 @@ function mcl_farming:add_gourd(full_unconnected_stem, connected_stem_basename, s else minetest.add_node(blockpos, {name=gourd_itemstring}) end - -- Reset farmland to dirt when the gourd grows on top - if floor.name == "mcl_farming:soil" or floor.name == "mcl_farming:soil_wet" then + -- Reset farmland, etc. to dirt when the gourd grows on top + if minetest.get_item_group(floor.name, "dirtifies_below_solid") == 1 then minetest.set_node(floorpos, {name = "mcl_core:dirt"}) end end