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

Implement synced registry check in holder stream codec #974

Merged
merged 6 commits into from
Dec 5, 2024

Conversation

Matyrobbrt
Copy link
Member

Closes #839

@Matyrobbrt Matyrobbrt added enhancement New (or improvement to existing) feature or request 1.20.6 Targeted at Minecraft 1.20.6 labels May 18, 2024
@neoforged-pr-publishing
Copy link

neoforged-pr-publishing bot commented May 18, 2024

  • Publish PR to GitHub Packages

Last commit published: 31fb8b8161229b4e6950855d43f5dc77375f9f39.

PR Publishing

The artifacts published by this PR:

Repository Declaration

In order to use the artifacts published by the PR, add the following repository to your buildscript:

repositories {
    maven {
        name 'Maven for PR #974' // https://github.com/neoforged/NeoForge/pull/974
        url 'https://prmaven.neoforged.net/NeoForge/pr974'
        content {
            includeModule('net.neoforged', 'testframework')
            includeModule('net.neoforged', 'neoforge')
        }
    }
}

MDK installation

In order to setup a MDK using the latest PR version, run the following commands in a terminal.
The script works on both *nix and Windows as long as you have the JDK bin folder on the path.
The script will clone the MDK in a folder named NeoForge-pr974.
On Powershell you will need to remove the -L flag from the curl invocation.

mkdir NeoForge-pr974
cd NeoForge-pr974
curl -L https://prmaven.neoforged.net/NeoForge/pr974/net/neoforged/neoforge/21.4.14-beta-pr-974-fix-839/mdk-pr974.zip -o mdk.zip
jar xf mdk.zip
rm mdk.zip || del mdk.zip

To test a production environment, you can download the installer from here.

FiniteReality
FiniteReality previously approved these changes May 18, 2024
@sciwhiz12
Copy link
Member

@Matyrobbrt, do you still intend to update this PR to 1.21?

@Matyrobbrt
Copy link
Member Author

Yes. ™

@embeddedt
Copy link
Member

Is this still needed after 1.21.2?

@Technici4n
Copy link
Member

Yes it is. @Matyrobbrt can you update this to 1.21.4 and apply pup's recommendation?

@neoforged-automation
Copy link

@Matyrobbrt, this pull request has conflicts, please resolve them for this PR to move forward.

@Matyrobbrt Matyrobbrt changed the base branch from 1.20.x to 1.21.x December 4, 2024 21:15
@Matyrobbrt Matyrobbrt added 1.21.4 Targeted at Minecraft 1.21.4 networking Related to networking and removed 1.20.6 Targeted at Minecraft 1.20.6 labels Dec 4, 2024
@Technici4n
Copy link
Member

Does Netty have a special check for CodecException, and your intention to make use of that? If not, better use a more standard Java exception IMO.

@Technici4n
Copy link
Member

@XFactHD pointed out that vanilla already throws instances of CodecException (or rather: the derived Encoder/DecoderException) in that same class.

@Matyrobbrt Matyrobbrt enabled auto-merge (squash) December 5, 2024 19:34
@Matyrobbrt Matyrobbrt merged commit adc8974 into neoforged:1.21.x Dec 5, 2024
6 checks passed
@neoforged-releases
Copy link

🚀 This PR has been released as NeoForge version 21.4.8-beta.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.21.4 Targeted at Minecraft 1.21.4 enhancement New (or improvement to existing) feature or request networking Related to networking
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The registry check in PacketByteBufs should also be implemented for the holder method
6 participants