From 465a2354c05b6a7041e2a5e79fbd83f795d0510f Mon Sep 17 00:00:00 2001 From: EnZaXD Date: Sat, 13 Jul 2024 11:00:00 +0200 Subject: [PATCH] Call component rewriter in pre 1.20.3 advancement handler (#4014) Required for ViaBackwards where we need to rewrite the translation key (and it also doesn't hurt to have this in forward protocols). Closes https://github.com/ViaVersion/ViaBackwards/issues/819 --- .../viaversion/viaversion/rewriter/ItemRewriter.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/common/src/main/java/com/viaversion/viaversion/rewriter/ItemRewriter.java b/common/src/main/java/com/viaversion/viaversion/rewriter/ItemRewriter.java index ab0d70f2d..e3f912ae1 100644 --- a/common/src/main/java/com/viaversion/viaversion/rewriter/ItemRewriter.java +++ b/common/src/main/java/com/viaversion/viaversion/rewriter/ItemRewriter.java @@ -17,6 +17,7 @@ */ package com.viaversion.viaversion.rewriter; +import com.google.gson.JsonElement; import com.viaversion.nbt.tag.Tag; import com.viaversion.viaversion.api.connection.UserConnection; import com.viaversion.viaversion.api.data.Mappings; @@ -363,8 +364,14 @@ public class ItemRewriter