protocolize icon indicating copy to clipboard operation
protocolize copied to clipboard

Not working with 1.21.5+

Open FireBall1725 opened this issue 2 months ago • 0 comments

Describe the bug I have a velocity plugin that makes use of PlayerLook, PlayerPositionLook and HeldItemChange, there aren't any errors that show up in the logs, i just don't recieve events to those listeners for users who are using 1.21.5 or newer.

To Reproduce Steps to reproduce the behavior:

  1. create a listeners
    private void registerListeners() {
        Protocolize.listenerProvider().registerListener(new AbstractPacketListener<>(PlayerLook.class, dev.simplix.protocolize.api.Direction.UPSTREAM, 0) {
            @Override
            public void packetReceive(PacketReceiveEvent<PlayerLook> event) {
                updateActivity(event.player().uniqueId());
            }

            @Override
            public void packetSend(dev.simplix.protocolize.api.listener.PacketSendEvent<PlayerLook> event) {}
        });

        Protocolize.listenerProvider().registerListener(new AbstractPacketListener<>(PlayerPositionLook.class, dev.simplix.protocolize.api.Direction.UPSTREAM, 0) {
            @Override
            public void packetReceive(PacketReceiveEvent<PlayerPositionLook> event) {
                updateActivity(event.player().uniqueId());
            }

            @Override
            public void packetSend(dev.simplix.protocolize.api.listener.PacketSendEvent<PlayerPositionLook> event) {}
        });

        Protocolize.listenerProvider().registerListener(new AbstractPacketListener<>(HeldItemChange.class, dev.simplix.protocolize.api.Direction.UPSTREAM, 0) {
            @Override
            public void packetReceive(PacketReceiveEvent<HeldItemChange> event) {
                updateActivity(event.player().uniqueId());
            }

            @Override
            public void packetSend(dev.simplix.protocolize.api.listener.PacketSendEvent<HeldItemChange> event) {}
        });
    }
  1. connect to a velocity server using a client using 1.21.4 or older, notice the events work, connect with a client using 1.21.5 or newer, and notice there are no events.

Expected behavior I would expect 1.21.5 or newer clients to return the same events as the older clients

Screenshots n/a

Proxy environment Velocity, minimal plugins, mostly custom stuff

Minecraft versions used 1.21.1 and 1.21.10

FireBall1725 avatar Dec 29 '25 01:12 FireBall1725