mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-04-17 08:43:30 +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");
|
DefaultServerIP = config.GetSettingsValue<string>("defaultServerIP");
|
||||||
IncompatibleModsAllowed = config.GetSettingsValue<bool>("incompatibleModsAllowed");
|
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");
|
var _showPlayerNames = config.GetSettingsValue<bool>("showPlayerNames");
|
||||||
|
|
||||||
if (_showPlayerNames != ServerSettingsManager.ShowPlayerNames)
|
if (_showPlayerNames != ServerSettingsManager.ShowPlayerNames)
|
||||||
{
|
{
|
||||||
new ServerSettingsMessage().Send();
|
new ServerSettingsMessage().Send();
|
||||||
}
|
}
|
||||||
|
|
||||||
ServerSettingsManager.ShowPlayerNames = _showPlayerNames;
|
ServerSettingsManager.ShowPlayerNames = _showPlayerNames;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user