Cleanup
This commit is contained in:
parent
70a9617c8e
commit
fe990f4bcc
|
@ -58,7 +58,7 @@ minetest.register_on_generated(function(minp, maxp, blockseed)
|
||||||
--
|
--
|
||||||
-- after_set_data
|
-- after_set_data
|
||||||
--
|
--
|
||||||
-- can read (but cant and should not manipulate) voxelmanip `data`
|
-- read-only (but cant and should not manipulate) voxelmanip `data`
|
||||||
-- used for `place_schematic_on_vmanip` which will invalidate `data`
|
-- used for `place_schematic_on_vmanip` which will invalidate `data`
|
||||||
-- therefore we are doing it after we set the data
|
-- therefore we are doing it after we set the data
|
||||||
for _, def in ipairs(Everness.on_generated_queue) do
|
for _, def in ipairs(Everness.on_generated_queue) do
|
||||||
|
@ -84,7 +84,6 @@ minetest.register_on_generated(function(minp, maxp, blockseed)
|
||||||
-- Used for direct manipulation of the world chunk nodes where the
|
-- Used for direct manipulation of the world chunk nodes where the
|
||||||
-- definitions of nodes are available and node callback can be executed
|
-- definitions of nodes are available and node callback can be executed
|
||||||
-- or e.g. for `minetest.fix_light`
|
-- or e.g. for `minetest.fix_light`
|
||||||
|
|
||||||
for _, def in ipairs(Everness.on_generated_queue) do
|
for _, def in ipairs(Everness.on_generated_queue) do
|
||||||
if def.can_run(biomemap) and def.after_write_to_map then
|
if def.can_run(biomemap) and def.after_write_to_map then
|
||||||
shared_args[def.name] = shared_args[def.name] or {}
|
shared_args[def.name] = shared_args[def.name] or {}
|
||||||
|
|
|
@ -364,7 +364,7 @@ Everness:add_to_queue_on_generated({
|
||||||
'place_center_x, place_center_z'
|
'place_center_x, place_center_z'
|
||||||
)
|
)
|
||||||
|
|
||||||
minetest.log('action', '[Everness] Willow Tree was placed at ' .. pos:to_string())
|
-- minetest.log('action', '[Everness] Willow Tree was placed at ' .. pos:to_string())
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -308,7 +308,6 @@ minetest.set_gen_notify({ decoration = true }, {
|
||||||
d_rose_bush
|
d_rose_bush
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Called after generating a piece of world. Modifying nodes inside the area is a bit faster than usual.
|
|
||||||
Everness:add_to_queue_on_generated({
|
Everness:add_to_queue_on_generated({
|
||||||
name = 'everness:mineral_waters',
|
name = 'everness:mineral_waters',
|
||||||
can_run = function(biomemap)
|
can_run = function(biomemap)
|
||||||
|
|
Ŝarĝante…
Reference in New Issue