Skip to content

Conversation

@emyfops
Copy link
Collaborator

@emyfops emyfops commented Jan 26, 2026

Due to the nature of Inject, they can cause mixin conflicts with mods that aren't up to date or don't use mixinextra features. This pull request replaces most injections by wrapping operations

This pull request needs extensive testing as it may break current features and introduce logic bugs

This pull request cleans up the mixins and replaces some mixins with less intrusive ones

@0-x-2-2
Copy link

0-x-2-2 commented Jan 27, 2026

I don't know why you would use this over @inject unless you are doing some weird @redirect style injection.

Copy link

@0-x-2-2 0-x-2-2 left a comment

Choose a reason for hiding this comment

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

Most of these are wrong, and you shouldn't replace some of these. @Inject is perfectly safe and likely what you want most of the time.

@0-x-2-2
Copy link

0-x-2-2 commented Jan 27, 2026

Most of this is just abusing the feature.

@0-x-2-2
Copy link

0-x-2-2 commented Jan 27, 2026

But many of the old injections were also wrong and should have been using some other feature from mixinextras.

@emyfops
Copy link
Collaborator Author

emyfops commented Jan 27, 2026

I mistakenly took an error from last year and attributed to Inject while the culprit was Redirect. I'll force remove my changes and instead use this pr to clean up some mixins.

@emyfops emyfops changed the title Ref: Change injections for wrapping operations Ref: Mixin cleanup Jan 27, 2026
@emyfops
Copy link
Collaborator Author

emyfops commented Jan 27, 2026

I've tested for potential breaking changes and they're all good

@emyfops emyfops merged commit 530b98b into 1.21.11 Jan 27, 2026
@emyfops emyfops deleted the refactor/mixin_injections branch January 27, 2026 15:57
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.

3 participants