ViaVersion / ViaRewind

ViaBackwards addon to allow 1.8.x and 1.7.x clients on newer server versions.
https://hangar.papermc.io/ViaVersion/ViaRewind
GNU General Public License v3.0
245 stars 77 forks source link

Replace translation keys to raw value in jsonToLegacy #434

Closed tomcraft closed 1 year ago

tomcraft commented 1 year ago

This fixes bossbar, signs and books that contains translation key by replacing them with the en_US values contained in ViaVersion.

I opted for a static ComponentRewriter because both 1.7 and 1.8 require the same processing as we don't have a 1.7-1.8-1.9 diff file anyway.

Tested with 1.12 server and 1.7/1.8 clients.