summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index d1456cb..c134375 100644
--- a/init.lua
+++ b/init.lua
@@ -412,7 +412,7 @@ local function sed()
if node.name == "default:dirt" and underliquid < 1 then
-- since we don't have biome information, we'll assume that if there is no sand or
-- desert sand anywhere nearby, we shouldn't degrade this block further
- local fpos = minetest.find_node_near(pos, 2, {"default:sand", "default:desert_sand"})
+ local fpos = minetest.find_node_near({x = pos.x, y = pos.y + 1, z = pos.z}, 1, {"default:sand", "default:desert_sand"})
if not fpos then
return
end