Api version gets incremented. The size preceding wearables was changed to a varint.

This commit is contained in:
Sollace 2023-09-25 21:08:24 +01:00
parent 0d226b51f9
commit a9b870547a
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB

View file

@ -8,7 +8,7 @@ import com.minelittlepony.api.pony.meta.*;
public class MsgPonyData { public class MsgPonyData {
private static final short API_IDENTIFIER = (short) 0xABCD; private static final short API_IDENTIFIER = (short) 0xABCD;
// API version - increment this number before any time any data is added/removed/moved in the data stream // API version - increment this number before any time any data is added/removed/moved in the data stream
private static final byte API_VERSION = 2; private static final byte API_VERSION = 3;
public static PonyData read(PacketByteBuf buffer) { public static PonyData read(PacketByteBuf buffer) {
short data = buffer.readShort(); short data = buffer.readShort();