From 77382d930ee60a67116462f0c9d15a56e7f9255d Mon Sep 17 00:00:00 2001 From: kno10 Date: Sat, 3 Aug 2024 17:52:51 +0200 Subject: [PATCH] Typo in setting name, default should be false (#4492) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4492 Reviewed-by: Mikita Wiśniewski Co-authored-by: kno10 Co-committed-by: kno10 --- mods/ENTITIES/mcl_mobs/api.lua | 2 +- mods/ENTITIES/mcl_mobs/spawning.lua | 5 ++--- settingtypes.txt | 4 ++-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/mods/ENTITIES/mcl_mobs/api.lua b/mods/ENTITIES/mcl_mobs/api.lua index 1e49e8b4f..b3d1ac142 100644 --- a/mods/ENTITIES/mcl_mobs/api.lua +++ b/mods/ENTITIES/mcl_mobs/api.lua @@ -18,7 +18,7 @@ mcl_mobs.invis = {} local remove_far = true 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_MOB_LIMIT = MAPGEN_LIMIT - 90 diff --git a/mods/ENTITIES/mcl_mobs/spawning.lua b/mods/ENTITIES/mcl_mobs/spawning.lua index 85b0ca3e5..b0b63ff39 100644 --- a/mods/ENTITIES/mcl_mobs/spawning.lua +++ b/mods/ENTITIES/mcl_mobs/spawning.lua @@ -34,9 +34,9 @@ local table_copy = table.copy local table_remove = table.remove 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) - if LOGGING_ON then + if logging then if property then message = message .. ": " .. dump(property) end @@ -98,7 +98,6 @@ mcl_log("Percentage of hostile spawns are group: " .. hostile_group_percentage_s --do mobs spawn? local mobs_spawn = minetest.settings:get_bool("mobs_spawn", true) ~= 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 -- Also used for missing parameter diff --git a/settingtypes.txt b/settingtypes.txt index ac3399498..30a160427 100644 --- a/settingtypes.txt +++ b/settingtypes.txt @@ -329,13 +329,13 @@ give_starting_inv (Player Starter Pack) bool false mcl_item_id_debug (Item ID Debug) bool false #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 mcl_logging_mapgen (Chunk generation logging) bool false # 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. mcl_logging_mcl_signs (Complete debug logging for mcl_signs) bool false