From 271c17180e2ec98a8c1981bb5f18070f990ce846 Mon Sep 17 00:00:00 2001
From: TenPlus1 <kinsellaja@yahoo.com>
Date: Thu, 4 Jan 2018 09:50:03 +0000
Subject: soil wont change into dirt if plant above

---
 soil.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'soil.lua')

diff --git a/soil.lua b/soil.lua
index 2b8c6b2..0b4844a 100644
--- a/soil.lua
+++ b/soil.lua
@@ -60,7 +60,7 @@ minetest.register_abm({
 		elseif node.name == "farming:soil_wet" then
 			minetest.set_node(pos, {name = "farming:soil"})
 
-		elseif node.name == "farming:soil" then
+		elseif node.name == "farming:soil" and minetest.get_item_group(nn, "plant") == 0 then
 			minetest.set_node(pos, {name = "default:dirt"})
 		end
 	end,
-- 
cgit v1.2.3