mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-17 08:31:08 +01:00
Merge pull request 'Bring mob spawning variable to the top of the spawning.lua file so it's easier to find' (#1660) from jordan4ibanez/MineClone2:mineclone5 into mineclone5
Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/1660
This commit is contained in:
commit
7703dec778
1 changed files with 4 additions and 3 deletions
|
@ -21,6 +21,10 @@ local table_remove = table.remove
|
||||||
|
|
||||||
-- range for mob count
|
-- range for mob count
|
||||||
local aoc_range = 48
|
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
|
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
|
-- count how many mobs are in an area
|
||||||
local count_mobs = function(pos)
|
local count_mobs = function(pos)
|
||||||
local num = 0
|
local num = 0
|
||||||
|
|
Loading…
Reference in a new issue