diff options
author | Auke Kok <auke-jan.h.kok@intel.com> | 2015-01-15 22:47:51 -0800 |
---|---|---|
committer | Auke Kok <auke-jan.h.kok@intel.com> | 2015-01-15 22:47:51 -0800 |
commit | 919e555e1a9cc22cca0d611c78a7ac33d8a61a04 (patch) | |
tree | 103080f69234d48832832c683c36d4761e2e8066 /init.lua | |
parent | 53cfc8f32747f985a59ac640f4d30f7ed109728b (diff) |
Only stop sand forming above water...
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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"}) |