mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-05-20 14:23:16 -04:00
added an exception to the solid node condition in reverting soil to dirt
This will make it possible to grow solid plants such as pumpkins (with the addition of a plant group to their specification).
This commit is contained in:
parent
c4bb058421
commit
64a7c9402e
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ minetest.register_abm({
|
|||
pos.y = pos.y+1
|
||||
local nn = minetest.get_node(pos).name
|
||||
pos.y = pos.y-1
|
||||
if minetest.registered_nodes[nn] and minetest.registered_nodes[nn].walkable then
|
||||
if minetest.registered_nodes[nn] and minetest.registered_nodes[nn].walkable and not minetest.registered_nodes[nn].groups.plant then
|
||||
minetest.set_node(pos, {name="default:dirt"})
|
||||
end
|
||||
-- check if there is water nearby
|
||||
|
|
Loading…
Add table
Reference in a new issue