From 919e555e1a9cc22cca0d611c78a7ac33d8a61a04 Mon Sep 17 00:00:00 2001 From: Auke Kok Date: Thu, 15 Jan 2015 22:47:51 -0800 Subject: Only stop sand forming above water... --- init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index a930679..ac8172e 100644 --- a/init.lua +++ b/init.lua @@ -398,8 +398,8 @@ local function sed() return end - -- prevent sand in dirt-dominated areas - if node.name == "default:dirt" then + -- prevent sand in dirt-dominated areas above water + 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"}) -- cgit v1.2.3