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:
parent
8ebc397b28
commit
f1def58b09
9
api.lua
9
api.lua
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user