forked from mtcontrib/farming
normal/dry soil turns into correct base when no water nearby
This commit is contained in:
parent
675b30dc76
commit
cd30901b68
2
soil.lua
2
soil.lua
@ -148,7 +148,7 @@ minetest.register_abm({
|
|||||||
if minetest.registered_nodes[nn]
|
if minetest.registered_nodes[nn]
|
||||||
and minetest.registered_nodes[nn].walkable
|
and minetest.registered_nodes[nn].walkable
|
||||||
and minetest.get_item_group(nn, "plant") == 0 then
|
and minetest.get_item_group(nn, "plant") == 0 then
|
||||||
minetest.set_node(pos, {name = "default:dirt"})
|
minetest.set_node(pos, {name = ndef.soil.base})
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user