File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed
Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -950,7 +950,15 @@ public static void SendDataToAllHEROsModUsers()
950950 {
951951 var a = HEROsMod . instance . GetPacket ( ) ;
952952 a . Write ( memoryStream . ToArray ( ) ) ;
953- a . Send ( i ) ;
953+ try
954+ {
955+ a . Send ( i ) ;
956+ }
957+ catch ( ObjectDisposedException e )
958+ {
959+ Console . WriteLine ( $ "HERO's Mod: Resetting Player[{ i } ]") ;
960+ Players [ i ] . Reset ( ) ;
961+ }
954962 ResetWriter ( ) ;
955963 //NetMessage.SendData(HEROsModNetworkMessageType, i);
956964 writer . Write ( bytes ) ;
Original file line number Diff line number Diff line change 1- author = HERO, jopojelly, Matt Thompson, Everni
2- version = 0.2.5
1+ author = HERO, jopojelly, Matt Thompson, Panini
2+ version = 0.2.6
33versionScheme = ?.?.Fix.Quickfix
44displayName = HERO's Mod
55homepage = http://forums.terraria.org/index.php?threads/heros-mod-creative-mode-server-management-and-over-25-tools-1-3-1-1-compatible.44650/
You can’t perform that action at this time.
0 commit comments