From c6acea60cbb08019b0acab7811d26676175660bb Mon Sep 17 00:00:00 2001 From: paramat Date: Sun, 20 Apr 2014 08:13:14 +0100 Subject: [PATCH] Y = 47 bugfix: add snowblocks in chunk above during overgen --- README.txt | 2 +- init.lua | 15 +++++---------- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/README.txt b/README.txt index 014d8c1..b7cafee 100644 --- a/README.txt +++ b/README.txt @@ -1,4 +1,4 @@ -watershed 0.3.12 by paramat +watershed 0.3.13 by paramat For latest stable Minetest back to 0.4.8 Depends default bucket Licenses: code WTFPL, textures CC BY-SA diff --git a/init.lua b/init.lua index 5405eab..10a1129 100644 --- a/init.lua +++ b/init.lua @@ -1,17 +1,10 @@ --- watershed 0.3.12 by paramat +-- watershed 0.3.13 by paramat -- For latest stable Minetest and back to 0.4.8 -- Depends default bucket -- License: code WTFPL, textures CC BY-SA -- Red cobble texture CC BY-SA by brunob.santos --- snowy iceberg only if humid enough --- add rough alt, smooth alt noises for harmonic noise --- persistence to 0.67 for rough noises --- half scale of smooth noise for flatter lowlands --- 1 less octave for smooth noise --- fix sea ice in tundra at y = 47 --- removed snow from tundra --- New icydirt surface node in tundra +-- y = 47 bugfix: add snowblocks in chunk above -- Parameters @@ -359,7 +352,7 @@ minetest.register_on_generated(function(minp, maxp, seed) -- overgeneration and in-chunk generation if y == y0 - 1 then -- node layer below chunk, initialise tables - under[si] = 0 -- 0 to stop floating surface nodes bug + under[si] = 0 if ungen then if nofis and density >= 0 then -- if node solid stable[si] = 2 @@ -618,8 +611,10 @@ minetest.register_on_generated(function(minp, maxp, seed) data[viu] = c_wsicydirt elseif under[si] == 2 then data[viu] = c_dirtsnow + data[vi] = c_snowblock -- snowblocks in chunk above elseif under[si] == 3 then data[viu] = c_dirtsnow + data[vi] = c_snowblock elseif under[si] == 4 then data[viu] = c_wsdrygrass elseif under[si] == 5 then