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

Fix nether-pathfinder with optimized forge/neoforge builds #4660

Open
wants to merge 2 commits into
base: 1.19.4
Choose a base branch
from

Conversation

ZacSharp
Copy link
Collaborator

@ZacSharp ZacSharp commented Feb 26, 2025

We shadow the java part of netherpathfinder on forge and neoforge and we do so before running proguard.
Since PathSegments are only ever constructed via JNI by libnether-pathfinder proguard determines that PathSegment is never instantiated at all and rips out the constructor, making the game crash for obvious reasons.

Nether-pathfinder also seems to have a slight problem with it's logging, since the messages it prints don't make it into the log file.

Funnily, proguard now prints a message that explicitly keeping library classes is not needed.

Fixes #4656

We cannot distinguish between unsupported systems and failures on supported systems
so strongly implying the former is potentially misleading.
@ZacSharp
Copy link
Collaborator Author

Requires #4659 for testing.

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

Successfully merging this pull request may close these issues.

Unsupported CPU message on neoforge, works on fabric
1 participant