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.