Compare commits

..

4 Commits
6.8.2 ... 6.8.3

Author SHA1 Message Date
Auxilor
e094a1e934 Merge remote-tracking branch 'origin/master' 2021-09-24 09:50:12 +01:00
Auxilor
26c07a20e7 Updated to 6.8.3 2021-09-24 09:50:05 +01:00
Auxilor
ad68e1efef Fixed legacyToJson nullability bug 2021-09-24 09:49:54 +01:00
Auxilor
d8c3a3befa Removed redundant suppression 2021-09-21 19:18:01 +01:00
3 changed files with 7 additions and 4 deletions

View File

@@ -150,7 +150,6 @@ public class Display {
* @param player The player. * @param player The player.
* @param args The args. * @param args The args.
*/ */
@SuppressWarnings("checkstyle:FinalParameters")
@ApiStatus.Internal @ApiStatus.Internal
public static void callDisplayModule(@NotNull final DisplayModule module, public static void callDisplayModule(@NotNull final DisplayModule module,
@NotNull final ItemStack itemStack, @NotNull final ItemStack itemStack,

View File

@@ -336,10 +336,14 @@ public class StringUtils {
* @return The JSON String. * @return The JSON String.
*/ */
@NotNull @NotNull
public String legacyToJson(@NotNull final String legacy) { public String legacyToJson(@Nullable final String legacy) {
String processed = legacy;
if (legacy == null) {
processed = "";
}
return GsonComponentSerializer.gson().serialize( return GsonComponentSerializer.gson().serialize(
Component.empty().decoration(TextDecoration.ITALIC, false).append( Component.empty().decoration(TextDecoration.ITALIC, false).append(
LEGACY_COMPONENT_SERIALIZER.deserialize(legacy) LEGACY_COMPONENT_SERIALIZER.deserialize(processed)
) )
); );
} }

View File

@@ -1,2 +1,2 @@
version = 6.8.2 version = 6.8.3
plugin-name = eco plugin-name = eco