Skip to content

Commit

Permalink
wait before world traveling
Browse files Browse the repository at this point in the history
  • Loading branch information
SlashNephy committed Apr 8, 2024
1 parent 2ab3131 commit 80f87e4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions AetheryteLinkInChat/Teleporter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,11 @@ private void OnConditionChanged(ConditionFlag flag, bool value)

public async Task<bool> TeleportToPaths(IEnumerable<ITeleportPath> paths, World? world, CancellationToken cancellationToken)
{
while (IsTeleportUnavailable)
{
await Task.Delay(500, cancellationToken);
}

if (world != default)
{
if (world.RowId == clientState.LocalPlayer?.CurrentWorld?.Id)
Expand Down

0 comments on commit 80f87e4

Please sign in to comment.