From b4add0091c083bebc10fbe95bdac54fc0bac648f Mon Sep 17 00:00:00 2001 From: HybridDog Date: Sun, 25 Nov 2018 18:07:23 +0100 Subject: [PATCH 1/3] mapgen: Fix crashes when smooth transition is disabled --- src/mapgen_v6.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/mapgen_v6.lua b/src/mapgen_v6.lua index 9c7e95d..44794a5 100644 --- a/src/mapgen_v6.lua +++ b/src/mapgen_v6.lua @@ -255,7 +255,7 @@ minetest.register_on_generated(function(minp, maxp, seed) if not in_biome then if alpine and test - and test > smooth_rarity_min then + and test > (smooth and smooth_rarity_min or nosmooth_rarity) then -- remove trees near alpine local ground_y if data[area:index(x, maxp.y, z)] == c.air then @@ -345,7 +345,8 @@ minetest.register_on_generated(function(minp, maxp, seed) data[area:index(x, ground_y+1, z)] = c.dry_shrub else if snowy - or test > smooth_rarity_max then + or test > (smooth and smooth_rarity_max or + nosmooth_rarity) then -- more, deeper snow data[node] = c.snow_block else From 6529ab93042e288c1e08130ab85399e450804511 Mon Sep 17 00:00:00 2001 From: HybridDog Date: Sun, 25 Nov 2018 18:12:51 +0100 Subject: [PATCH 2/3] Fix settingtypes.txt setting description --- settingtypes.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/settingtypes.txt b/settingtypes.txt index d9204be..a5697d8 100644 --- a/settingtypes.txt +++ b/settingtypes.txt @@ -19,7 +19,7 @@ snow_debug (Debug Mode) bool false #Disable this to remove christmas saplings from being found. snow_christmas_content (Enable Christmas Content) bool true -#Enables debug output. Currently it only prints mgv6 info. +#Enables smooth biome transitions. snow_smooth_biomes (Smooth Biome Transitions) bool true #The minumum height a snow biome will generate (mgv7) From dc799f344f15ade2f8fb66cd6745dafb317c8515 Mon Sep 17 00:00:00 2001 From: HybridDog Date: Sun, 25 Nov 2018 18:19:21 +0100 Subject: [PATCH 3/3] Note about broken mapgen rarity setting --- settingtypes.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/settingtypes.txt b/settingtypes.txt index a5697d8..bd16a40 100644 --- a/settingtypes.txt +++ b/settingtypes.txt @@ -28,7 +28,8 @@ snow_min_height (Minumum Height for Snow Biomes) int 3 #Disable this to stop snow from being smoothed. snow_smooth_snow (Multiple Snow Levels) bool true -#mapgen rarity in %. +#mapgen rarity in %. Note that this and mapgen_size do not work right because +#sinus instead of Gauss curve is used as estimation. snow_mapgen_rarity (Snow Biome Rarity %) float 18 #size of the generated… (has an effect to the rarity, too)