0
0
Fork 0

Typo in setting name, default should be false (#4492)

Reviewed-on: VoxeLibre/VoxeLibre#4492
Reviewed-by: Mikita Wiśniewski <rudzik8@protonmail.com>
Co-authored-by: kno10 <kno10@noreply.git.minetest.land>
Co-committed-by: kno10 <kno10@noreply.git.minetest.land>
This commit is contained in:
kno10 2024-08-03 17:52:51 +02:00 committed by the-real-herowl
parent 5e366a8916
commit 77382d930e
3 changed files with 5 additions and 6 deletions

View File

@ -18,7 +18,7 @@ mcl_mobs.invis = {}
local remove_far = true local remove_far = true
local mobs_debug = minetest.settings:get_bool("mobs_debug", false) -- Shows helpful debug info above each mob local mobs_debug = minetest.settings:get_bool("mobs_debug", false) -- Shows helpful debug info above each mob
local spawn_logging = minetest.settings:get_bool("mcl_logging_mobs_spawn",true) local spawn_logging = minetest.settings:get_bool("mcl_logging_mobs_spawn", false)
local MAPGEN_LIMIT = mcl_vars.mapgen_limit local MAPGEN_LIMIT = mcl_vars.mapgen_limit
local MAPGEN_MOB_LIMIT = MAPGEN_LIMIT - 90 local MAPGEN_MOB_LIMIT = MAPGEN_LIMIT - 90

View File

@ -34,9 +34,9 @@ local table_copy = table.copy
local table_remove = table.remove local table_remove = table.remove
local pairs = pairs local pairs = pairs
local LOGGING_ON = minetest.settings:get_bool("mcl_logging_mobs_spawning", false) local logging = minetest.settings:get_bool("mcl_logging_mobs_spawn", false)
local function mcl_log (message, property) local function mcl_log (message, property)
if LOGGING_ON then if logging then
if property then if property then
message = message .. ": " .. dump(property) message = message .. ": " .. dump(property)
end end
@ -98,7 +98,6 @@ mcl_log("Percentage of hostile spawns are group: " .. hostile_group_percentage_s
--do mobs spawn? --do mobs spawn?
local mobs_spawn = minetest.settings:get_bool("mobs_spawn", true) ~= false local mobs_spawn = minetest.settings:get_bool("mobs_spawn", true) ~= false
local spawn_protected = minetest.settings:get_bool("mobs_spawn_protected") ~= false local spawn_protected = minetest.settings:get_bool("mobs_spawn_protected") ~= false
local logging = minetest.settings:get_bool("mcl_logging_mobs_spawn",true)
-- THIS IS THE BIG LIST OF ALL BIOMES - used for programming/updating mobs -- THIS IS THE BIG LIST OF ALL BIOMES - used for programming/updating mobs
-- Also used for missing parameter -- Also used for missing parameter

View File

@ -329,13 +329,13 @@ give_starting_inv (Player Starter Pack) bool false
mcl_item_id_debug (Item ID Debug) bool false mcl_item_id_debug (Item ID Debug) bool false
#Log mob spawning and despawning events #Log mob spawning and despawning events
mcl_logging_mobs_spawn (Log Mob Spawning) bool true mcl_logging_mobs_spawn (Log Mob Spawning) bool false
# If enabled mapgen timings will be dumped to log # If enabled mapgen timings will be dumped to log
mcl_logging_mapgen (Chunk generation logging) bool false mcl_logging_mapgen (Chunk generation logging) bool false
# If enabled generated structures will be logged # If enabled generated structures will be logged
mcl_logging_structures (Structure generation logging) bool true mcl_logging_structures (Structure generation logging) bool false
#Complete debug logging for mcl_signs events. Use this if you have issues with signs. #Complete debug logging for mcl_signs events. Use this if you have issues with signs.
mcl_logging_mcl_signs (Complete debug logging for mcl_signs) bool false mcl_logging_mcl_signs (Complete debug logging for mcl_signs) bool false