mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Fixed a crash on 1.19 when joining.
This commit is contained in:
parent
f66fb3b095
commit
2f90c8a67d
1 changed files with 3 additions and 0 deletions
|
|
@ -334,7 +334,10 @@ namespace MinecraftClient.Protocol.Handlers
|
||||||
if (protocolversion >= MC_1_16_Version)
|
if (protocolversion >= MC_1_16_Version)
|
||||||
{
|
{
|
||||||
if (protocolversion >= MC_1_19_Version)
|
if (protocolversion >= MC_1_19_Version)
|
||||||
|
{
|
||||||
dataTypes.ReadNextString(packetData); // Dimension Type: Identifier
|
dataTypes.ReadNextString(packetData); // Dimension Type: Identifier
|
||||||
|
currentDimensionType = new Dictionary<string, object>();
|
||||||
|
}
|
||||||
else if (protocolversion >= MC_1_16_2_Version)
|
else if (protocolversion >= MC_1_16_2_Version)
|
||||||
currentDimensionType = dataTypes.ReadNextNbt(packetData); // Dimension Type: NBT Tag Compound
|
currentDimensionType = dataTypes.ReadNextNbt(packetData); // Dimension Type: NBT Tag Compound
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue