Removed hub spawn point. It shouldn't be up to arena_lib, but to a separate mod (look for Hub Manager on GitLab)

This commit is contained in:
Zughy 2020-05-16 16:20:49 +02:00
parent 8ebc397b28
commit f1def58b09
2 changed files with 1 additions and 11 deletions

View File

@ -1,9 +1,6 @@
arena_lib = {}
arena_lib.mods = {}
-- TODO: spostarlo in mod Hub
local hub_spawn_point = { x = 0, y = 20, z = 0}
local S = minetest.get_translator("arena_lib")
----------------------------------------------
@ -822,12 +819,6 @@ end
-----------------GETTERS----------------------
----------------------------------------------
function arena_lib.get_hub_spawn_point()
return hub_spawn_point
end
function arena_lib.get_arena_by_name(mod, arena_name)
for id, arena in pairs(arena_lib.mods[mod].arenas) do

View File

@ -1,6 +1,5 @@
minetest.register_on_joinplayer(function(player)
player:set_pos(arena_lib.get_hub_spawn_point())
arena_lib.HUD_add(player)
end)