Finx spawn positions in 16-radius

This commit is contained in:
cora 2022-11-06 11:49:57 +01:00
parent 1d18482103
commit 59d384020e
1 changed files with 1 additions and 1 deletions

View File

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