From fe990f4bcc5c24bbb49c8bcc01a5d4e9b31ae44f Mon Sep 17 00:00:00 2001 From: Juraj Vajda Date: Sat, 10 Feb 2024 16:22:40 -0500 Subject: [PATCH] Cleanup --- mapgen_after.lua | 3 +-- mapgen_forsaken_tundra_under.lua | 2 +- mapgen_mineral_waters.lua | 1 - 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/mapgen_after.lua b/mapgen_after.lua index 6cb5c17..3ae35e4 100644 --- a/mapgen_after.lua +++ b/mapgen_after.lua @@ -58,7 +58,7 @@ minetest.register_on_generated(function(minp, maxp, blockseed) -- -- 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` -- therefore we are doing it after we set the data 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 -- definitions of nodes are available and node callback can be executed -- or e.g. for `minetest.fix_light` - for _, def in ipairs(Everness.on_generated_queue) do if def.can_run(biomemap) and def.after_write_to_map then shared_args[def.name] = shared_args[def.name] or {} diff --git a/mapgen_forsaken_tundra_under.lua b/mapgen_forsaken_tundra_under.lua index 09a63f1..f2363a6 100644 --- a/mapgen_forsaken_tundra_under.lua +++ b/mapgen_forsaken_tundra_under.lua @@ -364,7 +364,7 @@ Everness:add_to_queue_on_generated({ '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 diff --git a/mapgen_mineral_waters.lua b/mapgen_mineral_waters.lua index 1e29f3e..4e45ce6 100644 --- a/mapgen_mineral_waters.lua +++ b/mapgen_mineral_waters.lua @@ -308,7 +308,6 @@ minetest.set_gen_notify({ decoration = true }, { 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({ name = 'everness:mineral_waters', can_run = function(biomemap)