mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Typo: lenght -> length
This commit is contained in:
parent
f4e5d97adf
commit
d5cb14d585
1 changed files with 5 additions and 5 deletions
|
|
@ -283,11 +283,11 @@ namespace MinecraftClient
|
||||||
}
|
}
|
||||||
private string readNextString()
|
private string readNextString()
|
||||||
{
|
{
|
||||||
short lenght = readNextShort();
|
short length = readNextShort();
|
||||||
if (lenght > 0)
|
if (length > 0)
|
||||||
{
|
{
|
||||||
byte[] cache = new byte[lenght * 2];
|
byte[] cache = new byte[length * 2];
|
||||||
Receive(cache, 0, lenght * 2, SocketFlags.None);
|
Receive(cache, 0, length * 2, SocketFlags.None);
|
||||||
string result = ByteArrayToString(cache);
|
string result = ByteArrayToString(cache);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
@ -329,7 +329,7 @@ namespace MinecraftClient
|
||||||
readData(1); //Item count
|
readData(1); //Item count
|
||||||
readData(2); //Item damage
|
readData(2); //Item damage
|
||||||
short length = readNextShort();
|
short length = readNextShort();
|
||||||
//If lenght of optional NBT data > 0, read it
|
//If length of optional NBT data > 0, read it
|
||||||
if (length > 0) { readData(length); }
|
if (length > 0) { readData(length); }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue