fix: update logic for showing world

This commit is contained in:
Anna 2022-08-14 02:03:05 -04:00
parent e7cc163ce0
commit 9205cd57de
1 changed files with 3 additions and 1 deletions

View File

@ -963,7 +963,9 @@ internal class Client : IDisposable {
output.Add(new PlayerPayload(resp.Sender, resp.World));
}
if (!isSelf && resp.World != this.Plugin.LocalPlayer?.CurrentWorld.Id) {
var homeWorldsSame = resp.World == this.Plugin.LocalPlayer?.HomeWorld.Id;
var homeWorldsSameAndOnHomeWorld = homeWorldsSame && this.Plugin.LocalPlayer?.CurrentWorld.Id == resp.World;
if (!isSelf && !homeWorldsSameAndOnHomeWorld) {
output.AddIcon(BitmapFontIcon.CrossWorld);
var world = this.Plugin.DataManager.GetExcelSheet<World>()?.GetRow(resp.World)?.Name.ToDalamudString();
if (world != null) {