mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-05-20 14:23:16 -04:00
Merge 64a7c9402e
into 9bbde070a1
This commit is contained in:
commit
55fc515fb3
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ minetest.register_abm({
|
||||||
pos.y = pos.y+1
|
pos.y = pos.y+1
|
||||||
local nn = minetest.get_node(pos).name
|
local nn = minetest.get_node(pos).name
|
||||||
pos.y = pos.y-1
|
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"})
|
minetest.set_node(pos, {name="default:dirt"})
|
||||||
end
|
end
|
||||||
-- check if there is water nearby
|
-- check if there is water nearby
|
||||||
|
|
Loading…
Add table
Reference in a new issue