Closed Konicai closed 11 months ago
The ScoreComponent value is nullable. When the value is null (which it always should be for 1.16+) two problems occur:
FlattenerListener#component(@NotNull String text)
null
This attempts to resemble client behaviour more closely:
<1.16
1.16+
Closes #953
The ScoreComponent value is nullable. When the value is null (which it always should be for 1.16+) two problems occur:
FlattenerListener#component(@NotNull String text)
implemented by the LegacyTextSerializer rightfully throws an NPE.null
, unlike the vanilla client.This attempts to resemble client behaviour more closely:
<1.16
: Display the score value, otherwise empty text.1.16+
: Always display empty text. This PR does not match that, as it will still display the value regardless of game version.Closes #953