From f68150528d748b64cfb81b7b2b494c5c5abb8178 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sun, 14 May 2017 21:53:34 +0200 Subject: [PATCH] Fix farmland getting destroyed early --- mods/ITEMS/mcl_farming/soil.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ITEMS/mcl_farming/soil.lua b/mods/ITEMS/mcl_farming/soil.lua index 98d70607..89290498 100644 --- a/mods/ITEMS/mcl_farming/soil.lua +++ b/mods/ITEMS/mcl_farming/soil.lua @@ -65,7 +65,7 @@ minetest.register_abm({ -- Turn back into dirt when covered by solid node local above_node = minetest.get_node_or_nil({x=pos.x,y=pos.y+1,z=pos.z}) if above_node then - if minetest.get_item_group(above_node.name, "solid") then + if minetest.get_item_group(above_node.name, "solid") ~= 0 then node.name = "mcl_core:dirt" minetest.set_node(pos, node) return