Merge pull request #1 from Treer/master
Fix "attempt to index a nil value" in layer 25 or higher
This commit is contained in:
commit
82578e1f86
|
@ -0,0 +1,2 @@
|
|||
name = multi_map
|
||||
description = Mulitple layers of map generation for Minetest
|
|
@ -0,0 +1,3 @@
|
|||
name = multi_map_core
|
||||
description = multi_map core engine and API
|
||||
depends = default
|
|
@ -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" })
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
name = multi_map_generators
|
||||
description = example mapgens for multi_map
|
||||
depends = default, multi_map_core
|
Loading…
Reference in New Issue