From 4a9acd6b11f67e4de56a81ed0bc51cafbd638539 Mon Sep 17 00:00:00 2001 From: Nassim Jahnke Date: Wed, 21 Dec 2022 10:44:37 +0100 Subject: [PATCH] Fix missed 1.19.3 pose change Fixes #509 --- .../packets/EntityPackets1_19_3.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_19_1to1_19_3/packets/EntityPackets1_19_3.java b/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_19_1to1_19_3/packets/EntityPackets1_19_3.java index 73a7af80..ca7ed9fa 100644 --- a/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_19_1to1_19_3/packets/EntityPackets1_19_3.java +++ b/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_19_1to1_19_3/packets/EntityPackets1_19_3.java @@ -241,6 +241,15 @@ public final class EntityPackets1_19_3 extends EntityRewriter { + // Sitting pose added + final int pose = meta.value(); + if (pose == 10) { + meta.setValue(0); // Standing + } else if (pose > 10) { + meta.setValue(pose - 1); + } + }); filter().filterFamily(Entity1_19_3Types.MINECART_ABSTRACT).index(11).handler((event, meta) -> { final int data = (int) meta.getValue(); meta.setValue(protocol.getMappingData().getNewBlockStateId(data));