diff --git a/api/src/main/java/com/viaversion/viaversion/api/rewriter/ComponentRewriter.java b/api/src/main/java/com/viaversion/viaversion/api/rewriter/ComponentRewriter.java index 706a3b176..5b74adcc8 100644 --- a/api/src/main/java/com/viaversion/viaversion/api/rewriter/ComponentRewriter.java +++ b/api/src/main/java/com/viaversion/viaversion/api/rewriter/ComponentRewriter.java @@ -32,4 +32,6 @@ public interface ComponentRewriter { void processTag(UserConnection connection, @Nullable Tag tag); void processText(UserConnection connection, @Nullable JsonElement element); + + JsonElement processText(UserConnection connection, @Nullable String json); } diff --git a/common/src/main/java/com/viaversion/viaversion/rewriter/text/ComponentRewriterBase.java b/common/src/main/java/com/viaversion/viaversion/rewriter/text/ComponentRewriterBase.java index a56d47610..fcf2a4eed 100644 --- a/common/src/main/java/com/viaversion/viaversion/rewriter/text/ComponentRewriterBase.java +++ b/common/src/main/java/com/viaversion/viaversion/rewriter/text/ComponentRewriterBase.java @@ -159,6 +159,7 @@ public abstract class ComponentRewriterBase imp // ----------------------------------------------------------------------- // Json methods + @Override public JsonElement processText(final UserConnection connection, final String value) { try { final JsonElement root = JsonParser.parseString(value);