fix(game): write entity flags as one byte so the follower shows the right species (#71)

This commit is contained in:
Fiereu authored and GitHub committed 2026-07-26 14:29:41 +02:00
1 parent 3ff8a76875
commit 4879082eb0
1 file changed
+1 -1
@@ -39,7 +39,7 @@ object LoadEntityPacketCodec : PacketCodec<LoadEntityPacket>() {
val facing = Direction.entries[field(U8) { it.facing.ordinal }] val facing = Direction.entries[field(U8) { it.facing.ordinal }]
val transportation = field(U8, LoadEntityPacket::transportation) val transportation = field(U8, LoadEntityPacket::transportation)
val entityNameplateType = field(U8, LoadEntityPacket::entityNameplateType) val entityNameplateType = field(U8, LoadEntityPacket::entityNameplateType)
val flags = field(U16LE) { if (it.hasFollower) 0x04 else 0 } val flags = field(U8) { if (it.hasFollower) 0x04 else 0 }
if (flags and 0x01 != 0) field(S8) { 0 } if (flags and 0x01 != 0) field(S8) { 0 }
if (flags and 0x02 != 0) { if (flags and 0x02 != 0) {
field(S8) { 0 } field(S8) { 0 }