1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-01-23 16:30:19 +01:00

Added ores and decorations

This commit is contained in:
Gael-de-Sailly 2015-07-09 09:18:55 +02:00
parent fc94c4f29a
commit ba527c463e

View File

@ -756,6 +756,10 @@ minetest.register_chatcommand("regen",{
watershed_chunkgen(x0, y0, z0, x1, y1, z1, area, data) watershed_chunkgen(x0, y0, z0, x1, y1, z1, area, data)
vm:set_data(data) vm:set_data(data)
minetest.generate_ores(vm, minp, maxp)
minetest.generate_decorations(vm, minp, maxp)
vm:set_lighting({day = 0, night = 0})
vm:calc_lighting()
vm:write_to_map() vm:write_to_map()
vm:update_map() vm:update_map()
@ -790,6 +794,8 @@ minetest.register_on_generated(function(minp, maxp, seed)
watershed_chunkgen(x0, y0, z0, x1, y1, z1, area, data) watershed_chunkgen(x0, y0, z0, x1, y1, z1, area, data)
vm:set_data(data) vm:set_data(data)
minetest.generate_ores(vm, minp, maxp)
minetest.generate_decorations(vm, minp, maxp)
vm:set_lighting({day = 0, night = 0}) vm:set_lighting({day = 0, night = 0})
vm:calc_lighting() vm:calc_lighting()
vm:write_to_map(data) vm:write_to_map(data)