return position even on error

master
Tai @ Flex 2017-01-14 11:53:36 +00:00
parent 9b6418e1fe
commit 511cc82f5a
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ local function newspawn(radius)
end
if radius > 256 then
minetest.log("error", "No valid spawnable location")
return
return origin -- always return a position of sorts
end
local pos1 = {x=origin.x-radius, y=origin.y, z=origin.z-radius}