Skip to content

Not working with 1.21.5+ #267

@FireBall1725

Description

@FireBall1725

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions