tidy spawn pos check
This commit is contained in:
parent
9a6c954ecd
commit
c752b0f04a
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user