diff --git a/MinecraftClient/McClient.cs b/MinecraftClient/McClient.cs index 0e6253ac..c41aee98 100644 --- a/MinecraftClient/McClient.cs +++ b/MinecraftClient/McClient.cs @@ -55,6 +55,7 @@ namespace MinecraftClient private string host; private int port; + private int protocolversion; private string username; private string uuid; private string sessionid; @@ -105,7 +106,7 @@ namespace MinecraftClient public byte GetCurrentSlot() { return CurrentSlot; } public int GetGamemode() { return gamemode; } public bool GetNetworkPacketCaptureEnabled() { return networkPacketCaptureEnabled; } - public int GetProtocolVersion() { return handler.GetProtocolVersion(); } + public int GetProtocolVersion() { return protocolversion; } // get bots list for unloading them by commands public List GetLoadedChatBots() @@ -170,6 +171,7 @@ namespace MinecraftClient this.username = user; this.host = server_ip; this.port = port; + this.protocolVersion = protocolversion; if (!singlecommand) {