From 9205cd57de93c86ad65450208d68aa1eae11adae Mon Sep 17 00:00:00 2001 From: Anna Date: Sun, 14 Aug 2022 02:03:05 -0400 Subject: [PATCH] fix: update logic for showing world --- client/ExtraChat/Client.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/ExtraChat/Client.cs b/client/ExtraChat/Client.cs index 07296ca..ee93c1b 100644 --- a/client/ExtraChat/Client.cs +++ b/client/ExtraChat/Client.cs @@ -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()?.GetRow(resp.World)?.Name.ToDalamudString(); if (world != null) {