Skip to content

feat: item stars display#588

Open
TakoTheDev wants to merge 3 commits into
Skytils:2.x-newfrom
TakoTheDev:item_star_display
Open

feat: item stars display#588
TakoTheDev wants to merge 3 commits into
Skytils:2.x-newfrom
TakoTheDev:item_star_display

Conversation

@TakoTheDev
Copy link
Copy Markdown
Contributor

@TakoTheDev TakoTheDev commented Feb 21, 2026

while it works, I don't think Injecting ItemStack#getName is the most performant idea (may be better to just do it specifically for HandledScreen Tooltip Rendering and InGameHud Item Name Popup)

image image

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

In general, I'd like to avoid this kind of hook style class. I think it's fine if you want a kotlin helper to handle parsing the item name but imo business logic should be directly in the mixin.

Comment on lines +27 to +34
when (Config.starDisplayType) {
1 -> {
out.append(current)

if (masters > 0) {
out.append(Text.literal(star.toString().repeat(masters)).formatted(Formatting.RED))
}
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Did it really use to just put the stars on at the end? I remember it would replace the stars. i.e. if it was 8 starts it'd be 3 red and 2 gold.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

lmao yea I remembered it wrong, you're right

will fix tomorrow probably

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