From d50ff261182be04c61be52062b108810e9a5ae26 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sat, 9 Feb 2019 03:11:15 +0100 Subject: [PATCH] =?UTF-8?q?Rename=20setting:=20mob=5Fspawn=5Fmultiplier=20?= =?UTF-8?q?=E2=86=92=20mobs=5Fspawn=5Fchance?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mods/ENTITIES/mcl_mobs/api.lua | 4 ++-- settingtypes.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mods/ENTITIES/mcl_mobs/api.lua b/mods/ENTITIES/mcl_mobs/api.lua index a75a6e39..0f7057df 100644 --- a/mods/ENTITIES/mcl_mobs/api.lua +++ b/mods/ENTITIES/mcl_mobs/api.lua @@ -65,7 +65,7 @@ local remove_far = false local difficulty = tonumber(minetest.settings:get("mob_difficulty")) or 1.0 local show_health = false local max_per_block = tonumber(minetest.settings:get("max_objects_per_block") or 99) -local mob_chance_multiplier = tonumber(minetest.settings:get("mob_chance_multiplier") or 1) +local mobs_spawn_chance = tonumber(minetest.settings:get("mobs_spawn_chance") or 1) -- Peaceful mode message so players will know there are no monsters if peaceful_only then @@ -3335,7 +3335,7 @@ function mobs:spawn_specific(name, nodes, neighbors, min_light, max_light, nodenames = nodes, neighbors = neighbors, interval = interval, - chance = max(1, (chance * mob_chance_multiplier)), + chance = max(1, (chance * mobs_spawn_chance)), catch_up = false, action = spawn_abm_action, }) diff --git a/settingtypes.txt b/settingtypes.txt index 1290c25c..69a51081 100644 --- a/settingtypes.txt +++ b/settingtypes.txt @@ -62,7 +62,7 @@ mobs_spawn (Spawn mobs naturally) bool true # Controls the overall amount of mobs that spawn. The higher the number, # the less often mobs will spawn. This does not affect mob spawners. -mob_chance_multiplier (Mob spawn multiplier) float 1.0 0.0 +mobs_spawn_chance (Mob spawn chance) float 1.0 0.0 # If enabled, only peaceful mobs will appear naturally. This does not # affect mob spawners.