Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Ref: Mixin cleanup#228

Merged
emyfops merged 4 commits into
1.21.11lambda-client/lambda:1.21.11from
refactor/mixin_injectionslambda-client/lambda:refactor/mixin_injectionsCopy head branch name to clipboard
Jan 27, 2026
Merged

Ref: Mixin cleanup#228
emyfops merged 4 commits into
1.21.11lambda-client/lambda:1.21.11from
refactor/mixin_injectionslambda-client/lambda:refactor/mixin_injectionsCopy head branch name to clipboard

Conversation

@emyfops

@emyfops emyfops commented Jan 26, 2026

Copy link
Copy Markdown
Collaborator

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

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

Copy link
Copy Markdown

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

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

Copy link
Copy Markdown

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.

Comment thread src/main/java/com/lambda/mixin/baritone/LookBehaviourMixin.java
Comment thread src/main/java/com/lambda/mixin/baritone/LookBehaviourMixin.java
Comment thread src/main/java/com/lambda/mixin/baritone/LookBehaviourMixin.java
Comment thread src/main/java/com/lambda/mixin/client/sound/SoundSystemMixin.java
Comment thread src/main/java/com/lambda/mixin/entity/EntityMixin.java Outdated
Comment thread src/main/java/com/lambda/mixin/entity/HandledScreensMixin.java Outdated
Comment thread src/main/java/com/lambda/mixin/entity/LivingEntityMixin.java Outdated
Comment thread src/main/java/com/lambda/mixin/entity/LivingEntityMixin.java Outdated
Comment thread src/main/java/com/lambda/mixin/entity/LivingEntityMixin.java Outdated
@0-x-2-2

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

Copy link
Copy Markdown

Most of this is just abusing the feature.

@0-x-2-2

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

Copy link
Copy Markdown

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

@emyfops

emyfops commented Jan 27, 2026

Copy link
Copy Markdown
Collaborator Author

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

emyfops commented Jan 27, 2026

Copy link
Copy Markdown
Collaborator Author

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.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.