Bring mob spawning variable to the top of the spawning.lua file so it's easier to find

This commit is contained in:
jordan4ibanez 2021-04-25 20:48:42 -04:00
parent ddb33acf0d
commit 0f4628db09
1 changed files with 4 additions and 3 deletions

View File

@ -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