mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-30 20:41:41 +09:00
Fix function name
This commit is contained in:
@@ -481,7 +481,7 @@ local function update_all_warps(player, warp_table)
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- Update all warps for all players on a force
|
-- Update all warps for all players on a force
|
||||||
local function update_all_wrap_force(force)
|
local function update_all_warp_force(force)
|
||||||
local warp_ids = Warps.get_force_warp_ids(force.name)
|
local warp_ids = Warps.get_force_warp_ids(force.name)
|
||||||
for _, player in pairs(force.connected_players) do
|
for _, player in pairs(force.connected_players) do
|
||||||
local frame = Gui.get_left_element(player, warp_list_container)
|
local frame = Gui.get_left_element(player, warp_list_container)
|
||||||
@@ -557,9 +557,9 @@ end)
|
|||||||
Warps.on_update(function(_, warp, old_warp)
|
Warps.on_update(function(_, warp, old_warp)
|
||||||
-- Get the force to update, warp is nil when removed
|
-- Get the force to update, warp is nil when removed
|
||||||
if warp then
|
if warp then
|
||||||
update_all_wrap_force(game.forces[warp.force_name])
|
update_all_warp_force(game.forces[warp.force_name])
|
||||||
else
|
else
|
||||||
update_all_wrap_force(game.forces[old_warp.force_name])
|
update_all_warp_force(game.forces[old_warp.force_name])
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user