mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-11-07 17:36:07 +00:00
Fix OverflowException for server port
Change short to int. Bug report by 1092CQ.
This commit is contained in:
parent
cd0fe0e85a
commit
dc06cef704
3 changed files with 8 additions and 8 deletions
|
|
@ -23,7 +23,7 @@ namespace MinecraftClient.Protocol
|
|||
/// <param name="protocolversion">Will contain protocol version, if ping successful</param>
|
||||
/// <returns>TRUE if ping was successful</returns>
|
||||
|
||||
public static bool GetServerInfo(string serverIP, short serverPort, ref int protocolversion)
|
||||
public static bool GetServerInfo(string serverIP, int serverPort, ref int protocolversion)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue