From 37711d00798aa3c2a2d8e0870168ea3cdf3c78c1 Mon Sep 17 00:00:00 2001 From: Nassim Jahnke Date: Tue, 19 Mar 2024 12:04:48 +0100 Subject: [PATCH] Set rewritten item in metadata rewriter --- .../viabackwards/api/rewriters/EntityRewriterBase.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/com/viaversion/viabackwards/api/rewriters/EntityRewriterBase.java b/common/src/main/java/com/viaversion/viabackwards/api/rewriters/EntityRewriterBase.java index 6451e89a..ccdecff6 100644 --- a/common/src/main/java/com/viaversion/viabackwards/api/rewriters/EntityRewriterBase.java +++ b/common/src/main/java/com/viaversion/viabackwards/api/rewriters/EntityRewriterBase.java @@ -222,7 +222,7 @@ public abstract class EntityRewriterBase { MetaType type = meta.metaType(); if (type == itemType) { - protocol.getItemRewriter().handleItemToClient(meta.value()); + meta.setValue(protocol.getItemRewriter().handleItemToClient(meta.value())); } else if (type == blockStateType) { int data = meta.value(); meta.setValue(protocol.getMappingData().getNewBlockStateId(data));