Fix modstorage bug and increase world size to 3200
This commit is contained in:
parent
13a78b3b01
commit
01e0013bed
@ -1,4 +1,4 @@
|
||||
minetest.set_mapgen_setting("mapgen_limit", "1500", true)
|
||||
minetest.set_mapgen_setting("mapgen_limit", "3200", true)
|
||||
minetest.set_mapgen_setting("mg_name", "flat", true)
|
||||
minetest.set_mapgen_setting("mg_flags", "nocaves, nodungeons, light, decorations, biomes", true)
|
||||
minetest.set_mapgen_setting("mgflat_spflags", "hills, lakes", true)
|
||||
@ -6,7 +6,7 @@ minetest.set_mapgen_setting("mgflat_hill_threshhold", "0.75", true)
|
||||
minetest.set_mapgen_setting("mgflat_np_terrain", "noise_params_2d 0, 1, (600, 600, 600), 7244, 5, 0.6, 2.5, eased", true)
|
||||
|
||||
mapgen = {
|
||||
structures = minetest.deserialize(minetest.get_mod_storage():get_string("structures") ~= "" or "{}") or {}
|
||||
structures = {},
|
||||
}
|
||||
|
||||
--
|
||||
|
@ -1,5 +1,7 @@
|
||||
local mods = minetest.get_mod_storage()
|
||||
|
||||
mapgen.structures = minetest.deserialize(mods:get_string("structures") ~= "" or "{}") or {}
|
||||
|
||||
function mapgen.register_structure(name, rarity, placeon)
|
||||
mapgen.structures[name] = {}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user