mapgen: Fix smooth transitions

This commit is contained in:
HybridDog 2021-10-24 19:20:49 +02:00
parent 6257c39406
commit 6b259b94ad
1 changed files with 3 additions and 3 deletions

View File

@ -34,7 +34,7 @@ end
local grounds = {} local grounds = {}
function is_ground(id) local function is_ground(id)
local is = grounds[id] local is = grounds[id]
if is ~= nil then if is ~= nil then
return is return is
@ -56,7 +56,7 @@ function is_ground(id)
end end
local toremoves = {} local toremoves = {}
function is_toremove(id) local function is_toremove(id)
local is = toremoves[id] local is = toremoves[id]
if is ~= nil then if is ~= nil then
return is return is
@ -168,7 +168,7 @@ minetest.register_on_generated(function(minp, maxp, seed)
--smooth mapgen --smooth mapgen
if riesenpilz.always_generate then if riesenpilz.always_generate then
in_biome = true in_biome = true
elseif smooth then elseif riesenpilz.smooth then
if test >= smooth_rarity_max if test >= smooth_rarity_max
or ( or (
test > smooth_rarity_min test > smooth_rarity_min