ViaBackwards icon indicating copy to clipboard operation
ViaBackwards copied to clipboard

Colored item name inside shulker box is not displayed properly on clients 1.12.2 and below

Open D4rthS1d10u5 opened this issue 2 years ago • 1 comments

'/viaversion dump' Output

https://dump.viaversion.com/abd0389fdcc75e8e21489c9e19848c503f78b9957a867814cd4a1993cd8863b5

Console Error

There are no errors displayed in the console.

Bug Description

Upon hovering on shulker box that contains item with name colored using legacy-formatted text it is displayed as JSON value. Similar behavior is described in the issue #575.

изображение

Steps to Reproduce

  1. Log in with 1.12.2 client.
  2. Take an empty shulker box.
  3. Obtain item with colored name.
  4. Put the item inside a shulker box.
  5. Break the shulker box and hover the cursor over it.

Expected Behavior

Item display name shoud be seen with colors and formatting like this:

изображение


I found that when an item is displayed inside a container, such as a player's inventory, its name is colored as expected.

изображение

Such effect is achieved by using tags that contain original text data: VB|Protocol1_12_2To1_13|2|Name for item display name and VB|Protocol1_13_2To1_14|oLore for lore respectively. And then plugin attaches legacy-formatted text inside Name and Lore tags.

Maybe it is possible to implement the same mechanism for display names inside shulker boxes?

Additional Server Info

No response

Checklist

  • [X] Via plugins are only running on EITHER the backend servers (e.g. Paper) OR the proxy (e.g. BungeeCord), not on both.
  • [X] I have included a ViaVersion dump.
  • [X] If applicable, I have included a paste (not a screenshot) of the error.
  • [X] I have tried a build from https://ci.viaversion.com/ and the issue still persists.

D4rthS1d10u5 avatar Sep 06 '23 22:09 D4rthS1d10u5

Platform: git--Paper--794%20%28MC%3A%201.16.5%29 ViaVersion (4.7.1-SNAPSHOT): Even with master ViaRewind(2.0.3): 19 commits behind master ViaBackwards(4.7.1-SNAPSHOT): Even with master

Please try the latest build(s) from https://ci.viaversion.com/. In case the issue still persists send the new dump

Barvalg avatar Sep 06 '23 22:09 Barvalg