Don't use ShowRoleForClients in code

This commit is contained in:
D1GQ committed 2025-10-24 21:07:24 -05:00
1 parent fa14f45579
commit 7eb8ca2d48
1 file changed
+2
+2
View File
@@ -19,6 +19,7 @@ internal static class HostManager
internal static void SyncNames(NameSyncType syncType, float sDelay, int repeat = 1) internal static void SyncNames(NameSyncType syncType, float sDelay, int repeat = 1)
{ {
return;
if (!GameState.IsHost || !BetterGameSettings.ShowRoleForClients.GetValue()) return; if (!GameState.IsHost || !BetterGameSettings.ShowRoleForClients.GetValue()) return;
if (syncCoroutine != null && GameData.Instance != null) if (syncCoroutine != null && GameData.Instance != null)
@@ -46,6 +47,7 @@ internal static class HostManager
internal static void SyncNames(NameSyncType syncType) internal static void SyncNames(NameSyncType syncType)
{ {
return;
if (!GameState.IsHost || !BetterGameSettings.ShowRoleForClients.GetValue()) return; if (!GameState.IsHost || !BetterGameSettings.ShowRoleForClients.GetValue()) return;
StringBuilder sb = new(); StringBuilder sb = new();