mirror of
https://github.com/HybridDog/riesenpilz.git
synced 2025-01-09 09:20:27 +01:00
mapgen: Fix smooth transitions
This commit is contained in:
parent
6257c39406
commit
6b259b94ad
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user