mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Fix indentation level, 4
This commit is contained in:
parent
2dfc08b45b
commit
ff9ba2f2bb
1 changed files with 29 additions and 26 deletions
|
|
@ -228,12 +228,15 @@ namespace MinecraftClient.Protocol.Handlers
|
||||||
dataTypes.ReadNextString(packetData); // World Names - 1.16 and above
|
dataTypes.ReadNextString(packetData); // World Names - 1.16 and above
|
||||||
if (protocolversion >= MC116Version)
|
if (protocolversion >= MC116Version)
|
||||||
dataTypes.ReadNextNbt(packetData); // Dimension Codec - 1.16 and above
|
dataTypes.ReadNextNbt(packetData); // Dimension Codec - 1.16 and above
|
||||||
|
|
||||||
|
//Current dimension - String identifier in 1.16, number below 1.16
|
||||||
if (protocolversion >= MC191Version)
|
if (protocolversion >= MC191Version)
|
||||||
this.currentDimension = dataTypes.ReadNextInt(packetData);
|
this.currentDimension = dataTypes.ReadNextInt(packetData);
|
||||||
else if (protocolversion >= MC116Version)
|
else if (protocolversion >= MC116Version)
|
||||||
this.currentDimension = dataTypes.ReadNextString(packetData); //In 1.16 it was changed to "Identifier" which seems to be a string
|
this.currentDimension = dataTypes.ReadNextString(packetData);
|
||||||
else
|
else
|
||||||
this.currentDimension = (sbyte)dataTypes.ReadNextByte(packetData);
|
this.currentDimension = (sbyte)dataTypes.ReadNextByte(packetData);
|
||||||
|
|
||||||
if (protocolversion < MC114Version)
|
if (protocolversion < MC114Version)
|
||||||
dataTypes.ReadNextByte(packetData); // Difficulty - 1.13 and below
|
dataTypes.ReadNextByte(packetData); // Difficulty - 1.13 and below
|
||||||
if (protocolversion >= MC116Version)
|
if (protocolversion >= MC116Version)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue