mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Merge pull request #50 from ORelio/master
Import merged pull request from Master to Indev
This commit is contained in:
commit
f0f8183182
1 changed files with 3 additions and 1 deletions
|
|
@ -544,7 +544,9 @@ namespace MinecraftClient.Protocol.Handlers
|
|||
if (tmp_ver.Length >= 2 && tmp_name.Length >= 2)
|
||||
{
|
||||
protocolversion = atoi(tmp_ver[1]);
|
||||
version = tmp_name[1].Split('"')[0];
|
||||
|
||||
// Handle if "name" exists twice, like when connecting to a server with another user logged in.
|
||||
version = (tmp_name.Length == 2) ? tmp_name[1].Split('"')[0] : tmp_name[2].Split('"')[0];
|
||||
if (result.Contains("modinfo\":"))
|
||||
{
|
||||
//Server is running Forge (which is not supported)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue