summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/Events/ModMultiplayerEvents.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/SMAPI/Framework/Events/ModMultiplayerEvents.cs')
-rw-r--r--src/SMAPI/Framework/Events/ModMultiplayerEvents.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/SMAPI/Framework/Events/ModMultiplayerEvents.cs b/src/SMAPI/Framework/Events/ModMultiplayerEvents.cs
index 9f76511e..64cf0355 100644
--- a/src/SMAPI/Framework/Events/ModMultiplayerEvents.cs
+++ b/src/SMAPI/Framework/Events/ModMultiplayerEvents.cs
@@ -12,7 +12,7 @@ namespace StardewModdingAPI.Framework.Events
/// <summary>Raised after the mod context for a peer is received. This happens before the game approves the connection (<see cref="IMultiplayerEvents.PeerConnected"/>), so the player doesn't yet exist in the game. This is the earliest point where messages can be sent to the peer via SMAPI.</summary>
public event EventHandler<PeerContextReceivedEventArgs> PeerContextReceived
{
- add => this.EventManager.PeerContextReceived.Add(value);
+ add => this.EventManager.PeerContextReceived.Add(value, this.Mod);
remove => this.EventManager.PeerContextReceived.Remove(value);
}
@@ -26,14 +26,14 @@ namespace StardewModdingAPI.Framework.Events
/// <summary>Raised after a mod message is received over the network.</summary>
public event EventHandler<ModMessageReceivedEventArgs> ModMessageReceived
{
- add => this.EventManager.ModMessageReceived.Add(value);
+ add => this.EventManager.ModMessageReceived.Add(value, this.Mod);
remove => this.EventManager.ModMessageReceived.Remove(value);
}
/// <summary>Raised after the connection with a peer is severed.</summary>
public event EventHandler<PeerDisconnectedEventArgs> PeerDisconnected
{
- add => this.EventManager.PeerDisconnected.Add(value);
+ add => this.EventManager.PeerDisconnected.Add(value, this.Mod);
remove => this.EventManager.PeerDisconnected.Remove(value);
}