Commit db70321 1 parent 327c397 commit db70321 Copy full SHA for db70321
File tree 2 files changed +14
-3
lines changed
2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ public static void Main()
53
53
54
54
var packetTypeRegistry = new PacketTypeRegistry (
55
55
loggerFactory . CreateLogger < PacketTypeRegistry > ( ) ,
56
- typeof ( SharedConstants ) . Assembly
56
+ typeof ( IntersectPacket ) . Assembly
57
57
) ;
58
58
if ( ! packetTypeRegistry . TryRegisterBuiltIn ( ) )
59
59
{
Original file line number Diff line number Diff line change @@ -26,7 +26,11 @@ internal static partial class Network
26
26
27
27
public static bool ConnectionDenied ;
28
28
29
- public static ClientNetwork EditorLidgrenNetwork { get ; set ; }
29
+ public static ClientNetwork ? EditorLidgrenNetwork
30
+ {
31
+ get => _editorLidgrenNetwork ;
32
+ set => _editorLidgrenNetwork = value ;
33
+ }
30
34
31
35
internal static PacketHandler PacketHandler { get ; private set ; }
32
36
@@ -90,6 +94,7 @@ public static void InitNetwork()
90
94
private static string ? _lastHost ;
91
95
private static int ? _lastPort ;
92
96
private static IPEndPoint ? _lastEndpoint ;
97
+ private static ClientNetwork ? _editorLidgrenNetwork ;
93
98
94
99
private static bool TryResolveEndPoint ( [ NotNullWhen ( true ) ] out IPEndPoint ? endPoint )
95
100
{
@@ -149,7 +154,13 @@ public static void Update()
149
154
}
150
155
else
151
156
{
152
- network . SendUnconnected ( serverEndpoint , new ServerStatusRequestPacket ( ) ) ;
157
+ network . SendUnconnected (
158
+ serverEndpoint ,
159
+ new ServerStatusRequestPacket
160
+ {
161
+ VersionData = SharedConstants . VersionData ,
162
+ }
163
+ ) ;
153
164
Globals . NextServerStatusPing = now + ServerStatusPingInterval ;
154
165
}
155
166
}
You can’t perform that action at this time.
0 commit comments