From a4f66782db6c3e2caa1e00fd4bcc1ff906a8dea9 Mon Sep 17 00:00:00 2001 From: JohnCorby Date: Mon, 7 Nov 2022 12:30:17 -0800 Subject: [PATCH] dont send message if not in multiplayer --- QSB/QSBCore.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/QSB/QSBCore.cs b/QSB/QSBCore.cs index d816763f..8c208d16 100644 --- a/QSB/QSBCore.cs +++ b/QSB/QSBCore.cs @@ -244,15 +244,17 @@ public class QSBCore : ModBehaviour { DefaultServerIP = config.GetSettingsValue("defaultServerIP"); IncompatibleModsAllowed = config.GetSettingsValue("incompatibleModsAllowed"); - if (!IsInMultiplayer || IsHost) + if (!IsInMultiplayer) + { + ServerSettingsManager.ShowPlayerNames = config.GetSettingsValue("showPlayerNames"); + } + else if (IsHost) { var _showPlayerNames = config.GetSettingsValue("showPlayerNames"); - if (_showPlayerNames != ServerSettingsManager.ShowPlayerNames) { new ServerSettingsMessage().Send(); } - ServerSettingsManager.ShowPlayerNames = _showPlayerNames; } else