Add setting to disable the mapgen star

This commit is contained in:
Wuzzy 2022-04-20 20:49:28 +02:00
parent c426ce6809
commit eb2db02321
2 changed files with 8 additions and 1 deletions

View File

@ -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

View File

@ -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