Throw an exception if using aethernet doesn't work and the destination is in another territory
This commit is contained in:
parent
16b62316c5
commit
7734692b0f
@ -179,10 +179,12 @@ internal static class AethernetShortcut
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else if (clientState.TerritoryType == aetheryteData.TerritoryIds[Task.To])
|
||||||
logger.LogWarning(
|
logger.LogWarning(
|
||||||
"Aethernet shortcut not unlocked (from: {FromAetheryte}, to: {ToAetheryte}), walking manually",
|
"Aethernet shortcut not unlocked (from: {FromAetheryte}, to: {ToAetheryte}), skipping as we are already in the destination territory",
|
||||||
Task.From, Task.To);
|
Task.From, Task.To);
|
||||||
|
else
|
||||||
|
throw new TaskException($"Aethernet shortcut not unlocked (from: {Task.From}, to: {Task.To})");
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user