We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Assuming there were a <repeat:_amount_> tag, a wrapping gradient tag would not be able to apply its gradient correctly scaled on the repeated content.
<repeat:_amount_>
The code that I used for the repeat tag to reproduce this was
return (Modifying) (current, depth) -> { if (depth > 0) return Component.empty(); Component c = Component.empty(); for (int i = 0; i < count; i++) { c = c.append(current); } return c; }
Against what I expected, <gradient:black:dark_gray:black><repeat:12>-</repeat><slot/> produced gradients scaled on <slot/>#length + 1 only
<gradient:black:dark_gray:black><repeat:12>-</repeat><slot/>
<slot/>#length + 1
From what code I found online, it looks like gradient tags only take child Inserting tags into account and not child Modifying tags.
adventure/text-minimessage/src/main/java/net/kyori/adventure/text/minimessage/tag/standard/AbstractColorChangingTag.java
Line 82 in aeaeb99
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Assuming there were a
<repeat:_amount_>
tag, a wrapping gradient tag would not be able to apply its gradient correctly scaled on the repeated content.The code that I used for the repeat tag to reproduce this was
Against what I expected,
<gradient:black:dark_gray:black><repeat:12>-</repeat><slot/>
produced gradients scaled on<slot/>#length + 1
onlyFrom what code I found online, it looks like gradient tags only take child Inserting tags into account and not child Modifying tags.
adventure/text-minimessage/src/main/java/net/kyori/adventure/text/minimessage/tag/standard/AbstractColorChangingTag.java
Line 82 in aeaeb99
The text was updated successfully, but these errors were encountered: