flags='nolight' replaces set_lighting. add paramtype='light' to light sources. remove dummy luxore and light spread ABM

This commit is contained in:
paramat
2015-01-05 08:34:06 +00:00
parent 6b675f18fd
commit c9a2401fd4
3 changed files with 9 additions and 26 deletions

View File

@ -218,7 +218,7 @@ if SINGLENODE then
-- Set mapgen parameters
minetest.register_on_mapgen_init(function(mgparams)
minetest.set_mapgen_params({mgname="singlenode"})
minetest.set_mapgen_params({mgname="singlenode", flags="nolight"})
end)
-- Spawn player function. Requires chunksize = 80 nodes (the default)
@ -369,18 +369,6 @@ minetest.register_abm({
end,
})
-- Update luxore light
minetest.register_abm({
nodenames = {"watershed:luxoreoff"},
interval = 5,
chance = 8,
action = function(pos, node)
minetest.add_node(pos, {name="watershed:luxore"})
nodeupdate(pos)
end,
})
-- Appletree sapling
minetest.register_abm({