Closed Dav1dde closed 11 years ago
Ok, so additionally to these Key/Value Pairs a list is sent for each value
(Key, Value, List : (short length, length*[{long msb, long lsb, double double_, byte byte_}]))
Think you could submit a pull request?
for (int i = 0; i < count; i++)
{
Keys[i] = stream.ReadString();
Values[i] = stream.ReadDouble();
// Not really sure what it is used for
var listLength = stream.ReadInt16(); // readShort
if (listLength < 0)
throw new InvalidOperationException("Cannot specify less than zero properties.");
for (int i2 = 0; i2 < listLength; i2++)
{
stream.ReadInt64(); // readLong
stream.ReadInt64(); // readLong
stream.ReadDouble();
stream.ReadByte();
}
}
Is what I added for 1.6.2 support
I've already dealt with that packet, in a different way.
Fixed in 7ec102b63cc5394fc17b5ad5fed47f56e9fd25e1
The packet 0x2C: https://github.com/SirCmpwn/Craft.Net/blob/master/Craft.Net/Packets.cs#L1551
Is implemented incorrectly.
Burger: http://b.wiki.vg/1.6.2#packets:0x2c
I am currently using mcp to find out how it is done correctly, if I find something out, I'll correct the wiki and post an update here.
// Edit, Seems like this changed in 1.6.2... My bad, I'll let it open for now.