-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fix compatibility with Feather Client #5436
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
base: master
Are you sure you want to change the base?
Conversation
I'm opening 3 PRs this week to break feather client more |
src/main/java/meteordevelopment/meteorclient/mixin/ChatHudMixin.java
Outdated
Show resolved
Hide resolved
instead of duplicating all the logic vanilla does, you could also just target something else that includes the index, like the |
Could you elaborate on this? I duplicated vanilla logic cause |
target |
I believe list.get is in the for-loop, while our mixin method is before the for-loop,
Did I achieve what you wanted correctly in this commit? |
Seems it broke compatibility with the worlds most fragile client (Feather) |
There we go |
src/main/java/meteordevelopment/meteorclient/mixin/ChatHudMixin.java
Outdated
Show resolved
Hide resolved
src/main/java/meteordevelopment/meteorclient/mixin/ChatHudMixin.java
Outdated
Show resolved
Hide resolved
src/main/java/meteordevelopment/meteorclient/mixin/ChatHudMixin.java
Outdated
Show resolved
Hide resolved
src/main/java/meteordevelopment/meteorclient/mixin/ChatHudMixin.java
Outdated
Show resolved
Hide resolved
|
||
// Get list for later usage at anti-spam | ||
|
||
@Redirect(method = "addVisibleMessage", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/util/ChatMessages;breakRenderedChatMessageLines(Lnet/minecraft/text/StringVisitable;ILnet/minecraft/client/font/TextRenderer;)Ljava/util/List;")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Redirect
is very bad for mod compatibility, capture the return value with a @ModifyExpressionValue
instead
Type of change
Description
This modifies
ChatHudMixin
to ensure compatibility between Meteor Client and Feather client. Using@Local
in mixins targeting theaddVisibleMessage
method causes crashes when used alongside Feather. This change removes the use of@Local
, instead manually reconstructing the necessary variables to maintain the same functionality.Related issues
Mention any issues that this pr relates to.
How Has This Been Tested?
2025-05-30.03-01-15.mp4
Checklist: