summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAuke Kok <auke-jan.h.kok@intel.com>2015-01-15 22:47:51 -0800
committerAuke Kok <auke-jan.h.kok@intel.com>2015-01-15 22:47:51 -0800
commit919e555e1a9cc22cca0d611c78a7ac33d8a61a04 (patch)
tree103080f69234d48832832c683c36d4761e2e8066
parent53cfc8f32747f985a59ac640f4d30f7ed109728b (diff)
Only stop sand forming above water...
-rw-r--r--init.lua4
1 files 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"})