From 09486f6b6b4e152999710aed73408e42c659fe63 Mon Sep 17 00:00:00 2001 From: HybridDog Date: Fri, 11 Oct 2013 13:01:05 +0200 Subject: [PATCH] updater --- sumpf/mapgen.lua | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/sumpf/mapgen.lua b/sumpf/mapgen.lua index b3d11e4..b33a7b9 100644 --- a/sumpf/mapgen.lua +++ b/sumpf/mapgen.lua @@ -175,9 +175,17 @@ minetest.register_on_generated(function(minp, maxp, seed) --smooth mapgen if sumpf.always_generate then in_biome = true - elseif smooth and (test > smooth_rarity_full or (test > smooth_rarity_ran and pr:next(0,smooth_rarity_dif) > (smooth_rarity_full - test) * 100 )) then + elseif smooth + and ( + test > smooth_rarity_full + or ( + test > smooth_rarity_ran + and pr:next(0,smooth_rarity_dif) > (smooth_rarity_full - test) * 100 + ) + ) then in_biome = true - elseif (not smooth) and test > nosmooth_rarity then + elseif (not smooth) + and test > nosmooth_rarity then in_biome = true end