ProtocolLib

3M Downloads

1.20.2 - `STEER_VEHICLE` mapped to `ServerboundPongPacket`

LoneDev6 opened this issue · 4 comments

commented
  • This issue is not solved in a development build

Describe the bug
Seems a bug of ProtocolLib 5.2.0-SNAPSHOT-679 and 1.20.2.
For some reason PacketType.Play.Client.STEER_VEHICLE.getPacketClass() returns ServerboundPongPacket instead of PacketPlayInSteerVehicle.
image

To Reproduce
Steps to reproduce the behavior:

  • spawn a tamed horse: /summon horse ~ ~ ~ {Tame:1, SaddleItem:{id:saddle,Count:1}}
  • ride it
  • listen for the packet
  • the packet event is not called
        ProtocolLibrary.getProtocolManager().addPacketListener(new PacketAdapter(
                PacketAdapter.params()
                        .plugin(plugin)
                        .listenerPriority(ListenerPriority.HIGHEST)
                        .types(PacketType.Play.Client.STEER_VEHICLE)
        )
        {
            @Override
            public void onPacketReceiving(PacketEvent e)
            {
                if (e.isCancelled() || e.isPlayerTemporary())
                    return;

                Player player = e.getPlayer();
//.....

Expected behavior
STEER_VEHICLE to be called

Screenshots

Version Info
https://pastebin.com/uwgzyVQK

commented

please fix

commented

Any news?

commented

will take a look today

commented

i'm using build 689 and i think it is fixed