Remove 'nolight' mapgen setting

master
paramat 2015-08-24 03:21:54 +01:00
parent 7a339e3ad7
commit d485d62f37
2 changed files with 2 additions and 10 deletions

View File

@ -1,4 +1,4 @@
pathv6alt 0.3.0 by paramat
pathv6alt 0.3.1 by paramat
For Minetest 0.4.12 and later
Depends default stairs
Licenses: Code LGPLv2.1, textures CC BY-SA 3.0

View File

@ -118,13 +118,6 @@ local np_column = {
dofile(minetest.get_modpath("pathv6alt") .. "/nodes.lua")
-- Set mapgen parameters
minetest.register_on_mapgen_init(function(mgparams)
minetest.set_mapgen_params({flags="nolight"})
end)
-- Initialize noise objects to nil
local nobj_base = nil
@ -153,8 +146,6 @@ minetest.register_on_generated(function(minp, maxp, seed)
local y0 = minp.y
local z0 = minp.z
--print ("[pathv6alt] minp (" .. x0 .. " " .. y0 .. " " .. z0 .. ")")
local c_air = minetest.get_content_id("air")
local c_ignore = minetest.get_content_id("ignore")
local c_tree = minetest.get_content_id("default:tree")
@ -770,6 +761,7 @@ minetest.register_on_generated(function(minp, maxp, seed)
end
vm:set_data(data)
vm:set_lighting({day = 0, night = 0})
vm:calc_lighting()
vm:write_to_map(data)