mirror of
https://github.com/Poikilos/mobs.git
synced 2023-10-03 07:28:50 -07:00
Increase spawning ratio
This commit is contained in:
parent
ada7a13b14
commit
47af2647f2
2
init.lua
2
init.lua
@ -363,7 +363,7 @@ function mobs:register_spawn(name, nodes, max_light, min_light)
|
||||
end
|
||||
|
||||
local count = 0
|
||||
for _,obj in pairs(minetest.env:get_objects_inside_radius(pos, 50)) do
|
||||
for _,obj in pairs(minetest.env:get_objects_inside_radius(pos, 30)) do
|
||||
if obj:is_player() then
|
||||
return
|
||||
elseif obj:get_luaentity().name == name then
|
||||
|
Loading…
x
Reference in New Issue
Block a user