diff --git a/init.lua b/init.lua index 606470e..23570a0 100644 --- a/init.lua +++ b/init.lua @@ -11,6 +11,9 @@ local COLORIZE_NODES = true -- If false, will use the default colors. local grayscale_colors = minetest.settings:get_bool("perlin_explorer_grayscale", false) +-- Shows a star on generating new noisechunks +local mapgen_star = minetest.settings:get_bool("perlin_explorer_mapgen_star", true) + -- The number of available test node colors. -- Higher values lead to worse performance but a coarse color scheme. -- This value is only used for performance reason, because Minetest @@ -803,7 +806,7 @@ local create_perlin = function(pos, noise, noiseparams, options, stats_mode) local stats = update_map(mpos, noise, noiseparams, local_options, stats_mode) - if not stats_mode then + if mapgen_star and not stats_mode then -- Show a particle in the center of the newly generated area local center = vector.new() center.x = mpos.x + options.size/2 diff --git a/settingtypes.txt b/settingtypes.txt index 15889c1..01bff94 100644 --- a/settingtypes.txt +++ b/settingtypes.txt @@ -12,3 +12,7 @@ perlin_explorer_color_count (Palette color count) enum 64 256,128,64,32,16,8,4,2 # If enabled, will use the grayscale color palette for the nodes. # If disabled, will use the default colors instead. perlin_explorer_grayscale (Use grayscale color palette) bool false + +# If enabled, whenever a chunk of nodes is being generated, a star +# will briefly appear in the center. +perlin_explorer_mapgen_star (Show star when generating nodes) bool true