Fixed buffer overflow

This commit is contained in:
Sollace 2023-09-28 13:48:14 +01:00
parent c2337058f6
commit f70ec0996c
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB

View file

@ -35,10 +35,10 @@ public class MsgPonyData {
buffer.writeEnumConstant(data.tailLength());
buffer.writeEnumConstant(data.tailShape());
buffer.writeEnumConstant(data.gender());
buffer.writeVarInt(data.priority());
new MsgSize(data.size()).toBuffer(buffer);
buffer.writeInt(data.glowColor());
buffer.writeBoolean(data.noSkin());
buffer.writeVarInt(data.priority());
data.gear().write(buffer);
return buffer;
}