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

TooltipDataCallback (copy of #3403 using Mixin Extras) #3486

Open
wants to merge 13 commits into
base: 1.20.4
Choose a base branch
from

Conversation

JumperOnJava
Copy link

JumperOnJava and others added 12 commits December 28, 2023 15:10
…ient/rendering/v1/TooltipComponentCallback.java

Co-authored-by: Juuz <[email protected]>
…ient/rendering/v1/TooltipDataCallback.java

Co-authored-by: Juuz <[email protected]>
It happened when only one tooltip data is added by event handlers
I for some reason assumed that there is always original data in item
…client/rendering/HandledScreenMixin.java

Co-authored-by: Juuz <[email protected]>
@modmuss50 modmuss50 added last call If you care, make yourself heard right away! port Porting existing code to a different version labels Dec 28, 2023
Comment on lines +38 to +42
var multiData = new MultiTooltipData(new ArrayList<>());
TooltipDataCallback.EVENT.invoker().appendTooltipData(stack, multiData.tooltipData());

if (multiData.tooltipData().isEmpty()) {
return original.call(stack);
Copy link
Member

Choose a reason for hiding this comment

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

This behaves diffrently to the other PR. Whats the expected behaviour?

@modmuss50 modmuss50 removed the last call If you care, make yourself heard right away! label Jan 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
port Porting existing code to a different version
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants