fix log level for multiplayer 'received message' logs
This commit is contained in:
parent
87afd4fbf8
commit
448cf30e1b
|
@ -5,6 +5,7 @@ These changes have not been released yet.
|
||||||
* For players:
|
* For players:
|
||||||
* Fixed Save Backup not pruning old backups if they're uncompressed.
|
* Fixed Save Backup not pruning old backups if they're uncompressed.
|
||||||
* Fixed issues when a farmhand reconnects before the game notices they're disconnected.
|
* Fixed issues when a farmhand reconnects before the game notices they're disconnected.
|
||||||
|
* Fixed 'received message' logs shown in non-developer mode.
|
||||||
|
|
||||||
* For modders:
|
* For modders:
|
||||||
* Added `IContentPack.HasFile` method.
|
* Added `IContentPack.HasFile` method.
|
||||||
|
|
|
@ -433,7 +433,7 @@ namespace StardewModdingAPI.Framework
|
||||||
ModMessageModel model = this.JsonHelper.Deserialise<ModMessageModel>(json);
|
ModMessageModel model = this.JsonHelper.Deserialise<ModMessageModel>(json);
|
||||||
HashSet<long> playerIDs = new HashSet<long>(model.ToPlayerIDs ?? this.GetKnownPlayerIDs());
|
HashSet<long> playerIDs = new HashSet<long>(model.ToPlayerIDs ?? this.GetKnownPlayerIDs());
|
||||||
if (this.Monitor.IsVerbose)
|
if (this.Monitor.IsVerbose)
|
||||||
this.Monitor.Log($"Received message: {json}.");
|
this.Monitor.Log($"Received message: {json}.", LogLevel.Trace);
|
||||||
|
|
||||||
// notify local mods
|
// notify local mods
|
||||||
if (playerIDs.Contains(Game1.player.UniqueMultiplayerID))
|
if (playerIDs.Contains(Game1.player.UniqueMultiplayerID))
|
||||||
|
|
Loading…
Reference in New Issue