Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Protocol changes for 1.21.20: ServerboundDiagnosticsPacket & 1.21.2: ServerboundLoadingScreenPacket #905

Open
xxAROX opened this issue Aug 22, 2024 · 3 comments

Comments

@xxAROX
Copy link

xxAROX commented Aug 22, 2024

Add ServerboundDiagnosticsPacket into bedrock/1.21.20/protocol.json

@xxAROX
Copy link
Author

xxAROX commented Aug 22, 2024

And ServerboundLoadingScreenPacket also I think - 1.21.2

@xxAROX
Copy link
Author

xxAROX commented Aug 22, 2024

Reproduce it with a relay on pmmp latest

@xxAROX xxAROX changed the title Protocol changes for 1.21.20 > ServerboundDiagnosticsPacket Protocol changes for 1.21.20: ServerboundDiagnosticsPacket & 1.21.2: ServerboundLoadingScreenPacket Aug 22, 2024
@xxAROX
Copy link
Author

xxAROX commented Aug 25, 2024

Fix on serverbound event:

player.on("serverbound", ({name, params}, des) => {
        if ([312, 315].includes(name)) {
            des.canceled = true;
            // @ts-ignore
            player.upstream.sendBuffer(des.fullBuffer);
        }
    });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant