Fix packet id of player velocity packets (#593)

This commit is contained in:
Brokkonaut 2023-09-26 02:47:57 +02:00 committed by GitHub
parent 1d35b1cdb2
commit 96650decae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -90,7 +90,7 @@ public final class EntityPacketRewriter1_20_2 extends EntityRewriter<Clientbound
wrapper.send(Protocol1_20To1_20_2.class); wrapper.send(Protocol1_20To1_20_2.class);
wrapper.cancel(); wrapper.cancel();
final PacketWrapper velocityPacket = wrapper.create(ClientboundPackets1_20_2.ENTITY_VELOCITY); final PacketWrapper velocityPacket = wrapper.create(ClientboundPackets1_19_4.ENTITY_VELOCITY);
velocityPacket.write(Type.VAR_INT, entityId); velocityPacket.write(Type.VAR_INT, entityId);
velocityPacket.write(Type.SHORT, velocityX); velocityPacket.write(Type.SHORT, velocityX);
velocityPacket.write(Type.SHORT, velocityY); velocityPacket.write(Type.SHORT, velocityY);