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,
![grafik](https://private-user-images.githubusercontent.com/66269026/308135872-0025ee40-b05a-4875-9ae6-b7fd3fcc32da.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYxNDYwNzcsIm5iZiI6MTcyNjE0NTc3NywicGF0aCI6Ii82NjI2OTAyNi8zMDgxMzU4NzItMDAyNWVlNDAtYjA1YS00ODc1LTlhZTYtYjdmZDNmY2MzMmRhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTEyVDEyNTYxN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTdjYjg2YjFjYWZiOGU0MWM5NzFlMjYyNTVkNTE4Y2NhY2NkNzI3NzgyZjA2MGM1ZTVkYWI1YjQzZDYwNGZkZTUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.z9IpwEgjoKzatHcch9Q6_UVJy-QsgCaMjDmBOnDwt8Y)
<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: