Fix OverflowException for server port

Change short to int. Bug report by 1092CQ.
This commit is contained in:
ORelio 2014-10-09 08:08:40 +02:00
parent cd0fe0e85a
commit dc06cef704
3 changed files with 8 additions and 8 deletions

View file

@ -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
{