tidy spawn pos check

This commit is contained in:
NatureFreshMilk 2020-01-14 13:17:30 +01:00
parent 9a6c954ecd
commit c752b0f04a

View File

@ -1,12 +1,8 @@
local spawn_pos = {x=0, y=0, z=0}
local spawn_pos = minetest.string_to_pos(minetest.settings:get("static_spawnpoint") or "(0, 0, 0)")
local range = 150
if minetest.setting_get_pos("static_spawnpoint") then
spawn_pos = minetest.setting_get_pos("static_spawnpoint")
end
local player_map = {} -- playername => boolean
minetest.register_on_leaveplayer(function(player)