mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-04-15 11:42:23 +00:00
dont send message if not in multiplayer
This commit is contained in:
parent
d394ee3f46
commit
a4f66782db
@ -244,15 +244,17 @@ public class QSBCore : ModBehaviour
|
||||
{
|
||||
DefaultServerIP = config.GetSettingsValue<string>("defaultServerIP");
|
||||
IncompatibleModsAllowed = config.GetSettingsValue<bool>("incompatibleModsAllowed");
|
||||
if (!IsInMultiplayer || IsHost)
|
||||
if (!IsInMultiplayer)
|
||||
{
|
||||
ServerSettingsManager.ShowPlayerNames = config.GetSettingsValue<bool>("showPlayerNames");
|
||||
}
|
||||
else if (IsHost)
|
||||
{
|
||||
var _showPlayerNames = config.GetSettingsValue<bool>("showPlayerNames");
|
||||
|
||||
if (_showPlayerNames != ServerSettingsManager.ShowPlayerNames)
|
||||
{
|
||||
new ServerSettingsMessage().Send();
|
||||
}
|
||||
|
||||
ServerSettingsManager.ShowPlayerNames = _showPlayerNames;
|
||||
}
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user