Remove 'nolight' mapgen setting
This commit is contained in:
parent
7a339e3ad7
commit
d485d62f37
@ -1,4 +1,4 @@
|
|||||||
pathv6alt 0.3.0 by paramat
|
pathv6alt 0.3.1 by paramat
|
||||||
For Minetest 0.4.12 and later
|
For Minetest 0.4.12 and later
|
||||||
Depends default stairs
|
Depends default stairs
|
||||||
Licenses: Code LGPLv2.1, textures CC BY-SA 3.0
|
Licenses: Code LGPLv2.1, textures CC BY-SA 3.0
|
||||||
|
10
init.lua
10
init.lua
@ -118,13 +118,6 @@ local np_column = {
|
|||||||
dofile(minetest.get_modpath("pathv6alt") .. "/nodes.lua")
|
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
|
-- Initialize noise objects to nil
|
||||||
|
|
||||||
local nobj_base = nil
|
local nobj_base = nil
|
||||||
@ -153,8 +146,6 @@ minetest.register_on_generated(function(minp, maxp, seed)
|
|||||||
local y0 = minp.y
|
local y0 = minp.y
|
||||||
local z0 = minp.z
|
local z0 = minp.z
|
||||||
|
|
||||||
--print ("[pathv6alt] minp (" .. x0 .. " " .. y0 .. " " .. z0 .. ")")
|
|
||||||
|
|
||||||
local c_air = minetest.get_content_id("air")
|
local c_air = minetest.get_content_id("air")
|
||||||
local c_ignore = minetest.get_content_id("ignore")
|
local c_ignore = minetest.get_content_id("ignore")
|
||||||
local c_tree = minetest.get_content_id("default:tree")
|
local c_tree = minetest.get_content_id("default:tree")
|
||||||
@ -770,6 +761,7 @@ minetest.register_on_generated(function(minp, maxp, seed)
|
|||||||
end
|
end
|
||||||
|
|
||||||
vm:set_data(data)
|
vm:set_data(data)
|
||||||
|
vm:set_lighting({day = 0, night = 0})
|
||||||
vm:calc_lighting()
|
vm:calc_lighting()
|
||||||
vm:write_to_map(data)
|
vm:write_to_map(data)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user