Spawn new players near game_origin

master
Brandon 2015-12-12 09:51:43 -06:00
parent e769d22a00
commit f12e899854
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ function mg_villages.spawnplayer(player)
local noise1 = minetest.get_perlin(12345, 6, 0.5, 256)
local min_dist = math.huge
local min_pos = {x = 0, y = 3, z = 0}
local min_pos = game_origin
for bx = -20, 20 do
for bz = -20, 20 do
local minp = {x = -32 + 80 * bx, y = -32, z = -32 + 80 * bz}