Typo: lenght -> length

This commit is contained in:
bearbear12345 2013-07-19 21:45:01 +10:00
parent f4e5d97adf
commit d5cb14d585

View file

@ -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); }
} }
} }