diff --git a/Modules/BetterHostManager.cs b/Modules/BetterHostManager.cs index cee18d8..d2369a6 100644 --- a/Modules/BetterHostManager.cs +++ b/Modules/BetterHostManager.cs @@ -122,7 +122,7 @@ class BetterHostManager { if (player == null || !player.DataIsCollected()) return; - if (!Main.BetterHost.Value) + if (!Main.BetterHost.Value || forMeeting) { if (player.Data.PlayerName != player.CurrentOutfit.PlayerName && !player.IsInShapeshift() || force) { @@ -187,16 +187,19 @@ class BetterHostManager NewName = $"{sbTopInfo}\n{NewName}"; // Don't send rpc if name is the same! - if (!LastPlayerName.ContainsKey(target.Data.PlayerId)) + if (!force) { - LastPlayerName[target.Data.PlayerId] = new Dictionary(); - } - - if (LastPlayerName[target.Data.PlayerId].ContainsKey(player.Data.PlayerId)) - { - if (LastPlayerName[target.Data.PlayerId][player.Data.PlayerId] == NewName) + if (!LastPlayerName.ContainsKey(target.Data.PlayerId)) { - return; + LastPlayerName[target.Data.PlayerId] = new Dictionary(); + } + + if (LastPlayerName[target.Data.PlayerId].ContainsKey(player.Data.PlayerId)) + { + if (LastPlayerName[target.Data.PlayerId][player.Data.PlayerId] == NewName) + { + return; + } } } diff --git a/Patches/CommandsPatch.cs b/Patches/CommandsPatch.cs index aca3cbd..785988e 100644 --- a/Patches/CommandsPatch.cs +++ b/Patches/CommandsPatch.cs @@ -372,7 +372,7 @@ class CommandsPatch case "syncallnames": if (HandleIsHost(command) == true) { - RPC.SyncAllNames(); + RPC.SyncAllNames(force: true); } break; default: