Skip to content

Pass proper TooltipContext to the item entity being hovered over#42

Open
BasiqueEvangelist wants to merge 1 commit intogliscowo:1.21from
BasiqueEvangelist:pass-proper-tooltip-context
Open

Pass proper TooltipContext to the item entity being hovered over#42
BasiqueEvangelist wants to merge 1 commit intogliscowo:1.21from
BasiqueEvangelist:pass-proper-tooltip-context

Conversation

@BasiqueEvangelist
Copy link

Interactic currently passes TooltipContext.DEFAULT to the item stack when getting a tooltip, which doesn't have a registry lookup. While that method is technically nullable, some mods (like Automobility) assume registries to always be present, and crash otherwise.
This makes Interactic pass in the whole World as context if it is present.

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.

1 participant