summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2018-01-04 09:50:03 +0000
committerTenPlus1 <kinsellaja@yahoo.com>2018-01-04 09:50:03 +0000
commit271c17180e2ec98a8c1981bb5f18070f990ce846 (patch)
tree9119de1c1b07c5cf82bd65cdc49bfd4b32d548fa
parent4b4a52b8d5b4fe2ae73a7b64c2f337da9eb96715 (diff)
soil wont change into dirt if plant above
-rw-r--r--soil.lua2
1 files changed, 1 insertions, 1 deletions
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,