mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-26 04:21:07 +01:00
Finx spawn positions in 16-radius
This commit is contained in:
parent
1d18482103
commit
59d384020e
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ local function check_spawn_pos(pos)
|
|||
end
|
||||
|
||||
local function spawn_zombies(self)
|
||||
local nn = minetest.find_nodes_in_area_under_air(vector.offset(self.pos,-32,-32,-32),vector.offset(self.pos,32,32,32),{"group:solid"})
|
||||
local nn = minetest.find_nodes_in_area_under_air(vector.offset(self.pos,-16,-16,-16),vector.offset(self.pos,16,16,16),{"group:solid"})
|
||||
table.shuffle(nn)
|
||||
for i=1,20 do
|
||||
local p = vector.offset(nn[i%#nn],0,1,0)
|
||||
|
|
Loading…
Reference in a new issue