Fix modstorage bug and increase world size to 3200

This commit is contained in:
LoneWolfHT 2019-11-11 11:13:21 -08:00
parent 13a78b3b01
commit 01e0013bed
2 changed files with 4 additions and 2 deletions

View File

@ -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 = {},
}
--

View File

@ -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] = {}