Fix arena_lib editor callbacks (now with swapped arguments)

This commit is contained in:
Zughy 2023-11-11 21:41:20 +01:00
parent ea0d3f1595
commit bfe0a069ec

View File

@ -7,13 +7,13 @@ local function give_items() end
local waypoints = {} -- KEY: player name; VALUE: {waypoints IDs}
arena_lib.on_join_editor("block_league", function(p_name, arena)
arena_lib.on_join_editor("block_league", function(arena, p_name)
show_waypoints(p_name, arena)
end)
arena_lib.on_leave_editor("block_league", function(p_name, arena)
arena_lib.on_leave_editor("block_league", function(arena, p_name)
remove_waypoints(p_name, arena)
end)