From f70ec0996c2d1dde7b95feacc9555d91c42df67a Mon Sep 17 00:00:00 2001 From: Sollace Date: Thu, 28 Sep 2023 13:48:14 +0100 Subject: [PATCH] Fixed buffer overflow --- src/main/java/com/minelittlepony/api/events/MsgPonyData.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/minelittlepony/api/events/MsgPonyData.java b/src/main/java/com/minelittlepony/api/events/MsgPonyData.java index ab7623d6..ef6bfafa 100644 --- a/src/main/java/com/minelittlepony/api/events/MsgPonyData.java +++ b/src/main/java/com/minelittlepony/api/events/MsgPonyData.java @@ -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; }