Handle new entity pose from 21w13a

This commit is contained in:
KennyTV 2021-04-07 17:27:51 +02:00
parent e9fa5b49ca
commit 00b8289c61
No known key found for this signature in database
GPG Key ID: 6BE3B555EBC5982B

View File

@ -49,6 +49,12 @@ public class MetadataRewriter1_17To1_16_4 extends MetadataRewriter {
metadata.setValue(protocol.getMappingData().getNewBlockStateId(data));
} else if (metadata.getMetaType() == MetaType1_17.PARTICLE) {
rewriteParticle((Particle) metadata.getValue());
} else if (metadata.getMetaType() == MetaType1_17.Pose) {
int pose = metadata.getCastedValue();
if (pose > 5) {
// Added LONG_JUMP at 6
metadata.setValue(pose + 1);
}
}
if (type == null) return;