From 0f4628db09d68f69a997f98dcd462f29e7ecbe06 Mon Sep 17 00:00:00 2001 From: jordan4ibanez Date: Sun, 25 Apr 2021 20:48:42 -0400 Subject: [PATCH] Bring mob spawning variable to the top of the spawning.lua file so it's easier to find --- mods/ENTITIES/mcl_mobs/api/spawning.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mods/ENTITIES/mcl_mobs/api/spawning.lua b/mods/ENTITIES/mcl_mobs/api/spawning.lua index 39736e9d0..ca4dc1e4f 100644 --- a/mods/ENTITIES/mcl_mobs/api/spawning.lua +++ b/mods/ENTITIES/mcl_mobs/api/spawning.lua @@ -21,6 +21,10 @@ local table_remove = table.remove -- range for mob count local aoc_range = 48 + +--do mobs spawn? +local mobs_spawn = minetest.settings:get_bool("mobs_spawn", true) ~= false + --[[ THIS IS THE BIG LIST OF ALL BIOMES - used for programming/updating mobs @@ -162,9 +166,6 @@ Overworld regular: - -local mobs_spawn = minetest.settings:get_bool("mobs_spawn", true) ~= false - -- count how many mobs are in an area local count_mobs = function(pos) local num = 0