Ejemplo n.º 1
0
        private void Multiplayer_PeerDisconnected(object sender, StardewModdingAPI.Events.PeerDisconnectedEventArgs e)
        {
            this.playerJustDisconnected = true;

            //ModMonitor.Log("Peer disconnected! Serializing custom objects");

            SerializationManager.cleanUpInventory();
            //SerializationManager.cleanUpWorld();
            //SerializationManager.cleanUpStorageContainers();
        }
 private void Multiplayer_PeerDisconnected(object?sender, StardewModdingAPI.Events.PeerDisconnectedEventArgs e)
 {
     if (Context.IsMainPlayer)
     {
         pauseTimeAll.Remove(e.Peer.PlayerID);
         inSkullAll.Remove(e.Peer.PlayerID);
         votePauseAll.Remove(e.Peer.PlayerID);
         eventStatus.Remove(e.Peer.PlayerID);
     }
 }