Merge pull request #1 from Treer/master

Fix "attempt to index a nil value" in layer 25 or higher
This commit is contained in:
Emiel van Rooijen 2019-02-11 12:09:43 +01:00 committed by GitHub
commit 82578e1f86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 6 deletions

2
modpack.conf Normal file
View File

@ -0,0 +1,2 @@
name = multi_map
description = Mulitple layers of map generation for Minetest

3
multi_map_core/mod.conf Normal file
View File

@ -0,0 +1,3 @@
name = multi_map_core
description = multi_map core engine and API
depends = default

View File

@ -1,5 +1,10 @@
local multi_map_generators_path = minetest.get_modpath("multi_map_generators")
multi_map.number_of_layers = 38
multi_map.layers_start_chunk = 0
multi_map.layer_height_chunks = 20
--multi_map.wrap_layers = true
dofile(multi_map_generators_path.."/mmgen_levels.lua")
--dofile(multi_map_generators_path.."/mmgen_lvm_example.lua")
dofile(multi_map_generators_path.."/mmgen_simple.lua")
@ -13,11 +18,6 @@ dofile(multi_map_generators_path.."/mmgen_testauri.lua")
--multi_map.register_generator(12, mmgen_testauri.generate)
--multi_map.register_generator(13, mmgen_levels.generate)
multi_map.number_of_layers = 38
multi_map.layers_start_chunk = 0
multi_map.layer_height_chunks = 20
--multi_map.wrap_layers = true
multi_map.register_fallback_generator(mmgen_simple.generate)
--multi_map.register_generator(18, mmgen_testauri.generate)
@ -31,6 +31,6 @@ multi_map.register_fallback_generator("Default Levels", mmgen_levels.generate)
multi_map.register_generator(18, mmgen_levels.generate)
multi_map.register_generator(19, mmgen_testauri.generate)
multi_map.register_generator(20, mmgen_levels.generate)
multi_map.set_layer_params(19, { name = "Lowlands Layer" })
multi_map.set_layer_params(18, { name = "Lowlands Layer" })
multi_map.set_layer_params(19, { name = "Central Layer" })
multi_map.set_layer_params(20, { name = "Remote Levels Land" })

View File

@ -0,0 +1,3 @@
name = multi_map_generators
description = example mapgens for multi_map
depends = default, multi_map_core