Fix wrong loading of rp_biome_version
This commit is contained in:
parent
1ba833a068
commit
fac84b96bc
@ -83,8 +83,6 @@ vignette_enable = true
|
||||
|
||||
# Mapgen
|
||||
|
||||
rp_biome_version = 2
|
||||
|
||||
# NP: offset, scale, (spread factors), seed offset, number of octaves, persistence, lacunarity
|
||||
|
||||
# Generic
|
||||
|
@ -41,8 +41,9 @@ Version 2: Major biome update introducing tons of new biomes and
|
||||
]]
|
||||
local LATEST_BIOME_VERSION = 2
|
||||
local bv = minetest.get_mapgen_setting("rp_biome_version")
|
||||
minetest.log("verbose", "[rp_default] Mapgen: rp_biome_version = "..tostring(bv))
|
||||
if bv then
|
||||
default.biome_version = tonumber(default.biome_version)
|
||||
default.biome_version = tonumber(bv)
|
||||
end
|
||||
if default.biome_version ~= 1 and default.biome_version ~= 2 then
|
||||
default.biome_version = LATEST_BIOME_VERSION
|
||||
|
Loading…
x
Reference in New Issue
Block a user