mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-12-25 18:07:45 +01:00
Handle new entity pose from 21w13a
This commit is contained in:
parent
e9fa5b49ca
commit
00b8289c61
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user