Fix missed 1.19.3 pose change

Fixes #509
This commit is contained in:
Nassim Jahnke 2022-12-21 10:44:37 +01:00
parent 02fcf90b8f
commit 4a9acd6b11
No known key found for this signature in database
GPG Key ID: 6BE3B555EBC5982B

View File

@ -241,6 +241,15 @@ public final class EntityPackets1_19_3 extends EntityRewriter<Protocol1_19_1To1_
});
registerMetaTypeHandler(Types1_19.META_TYPES.itemType, Types1_19.META_TYPES.blockStateType, Types1_19.META_TYPES.particleType, Types1_19.META_TYPES.optionalComponentType);
filter().index(6).handler((event, meta) -> {
// 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));