Skip to content

Conversation

@ninjaguardian
Copy link
Contributor

Neoforge has an extra int, while Fabric does not.

Fixes #669
Fixes #665

@skylect-dev
Copy link

Tested and verified this works.

Copy link
Contributor

@EchoEllet EchoEllet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested. I was not able to reproduce any crashes on NeoForge 1.21.1, even when opening the mod config, which was the case for 2.3.0.

EchoEllet added a commit to EchoEllet/Controlify that referenced this pull request Oct 23, 2025
EchoEllet added a commit to EchoEllet/Controlify that referenced this pull request Oct 23, 2025
EchoEllet added a commit to EchoEllet/Controlify that referenced this pull request Oct 23, 2025
EchoEllet added a commit to EchoEllet/Controlify that referenced this pull request Oct 23, 2025
EchoEllet added a commit to EchoEllet/Controlify that referenced this pull request Oct 23, 2025
@isXander isXander merged commit 7e2f521 into isXander:multiversion/dev Oct 28, 2025
//? if >=1.21.9 {
target = "Lnet/minecraft/client/gui/components/AbstractWidget;onClick(Lnet/minecraft/client/input/MouseButtonEvent;Z)V"
//?} else {
//?} elif fabric {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Super nit: Since this issue is NeoForge/Forge-specific, as they modify the vanilla method signature, would it be better to check for NeoForge and then use the else case for Fabric?

This approach scales better if Controlify adds another mod loader in the future, and it makes the code’s semantics clearer.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh yeah probably.

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.

[Bug] Crash upon loading in 1.21.8 Neoforge [Bug] Game does not launch with 2.4.1

4 participants