From dd4d405b364cfab9793e11659ddbd337c9ed805c Mon Sep 17 00:00:00 2001 From: MattBDev <4009945+MattBDev@users.noreply.github.com> Date: Mon, 2 Mar 2020 22:32:47 -0500 Subject: [PATCH] Use INSTANCE instead of legacy() due to shading issues --- .../src/main/java/com/boydti/fawe/config/Caption.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worldedit-core/src/main/java/com/boydti/fawe/config/Caption.java b/worldedit-core/src/main/java/com/boydti/fawe/config/Caption.java index 3ab290bff..2f7308040 100644 --- a/worldedit-core/src/main/java/com/boydti/fawe/config/Caption.java +++ b/worldedit-core/src/main/java/com/boydti/fawe/config/Caption.java @@ -40,7 +40,7 @@ public class Caption { private static Component color(TextComponent text) { String content = text.content(); if (content.indexOf('&') != -1) { - TextComponent legacy = LegacyComponentSerializer.legacy().deserialize(content, '&'); + TextComponent legacy = LegacyComponentSerializer.INSTANCE.deserialize(content, '&'); legacy = (TextComponent) legacy.style(text.style()); if (!text.children().isEmpty()) { text = TextComponent.builder().append(legacy).append(text.children()).build();