1
0
mirror of https://codeberg.org/tenplus1/farming.git synced 2024-12-24 17:50:20 +01:00

soil wont change into dirt if plant above

This commit is contained in:
TenPlus1 2018-01-04 09:50:03 +00:00
parent 4b4a52b8d5
commit 271c17180e

View File

@ -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,