From 1d18f2e45ef74cf394fe0a54c5b075fbb22aa97d Mon Sep 17 00:00:00 2001 From: Nassim Jahnke Date: Fri, 16 Aug 2024 12:16:08 +0200 Subject: [PATCH] Fix container id conversion and itemrewriter explosion method --- .../protocols/template/Protocol1_99To_98.java | 4 ++-- .../v1_21to1_21_2/Protocol1_21To1_21_2.java | 13 +++++++------ .../rewriter/BlockItemPacketRewriter1_21_2.java | 8 ++++++-- .../viaversion/rewriter/ItemRewriter.java | 9 +++------ .../viaversion/rewriter/StructuredItemRewriter.java | 1 + 5 files changed, 19 insertions(+), 16 deletions(-) diff --git a/common/src/main/java/com/viaversion/viaversion/protocols/template/Protocol1_99To_98.java b/common/src/main/java/com/viaversion/viaversion/protocols/template/Protocol1_99To_98.java index 068bb2287..700eafa0b 100644 --- a/common/src/main/java/com/viaversion/viaversion/protocols/template/Protocol1_99To_98.java +++ b/common/src/main/java/com/viaversion/viaversion/protocols/template/Protocol1_99To_98.java @@ -96,10 +96,10 @@ final class Protocol1_99To_98 extends AbstractProtocol value.rewrite(itemIdRewriter)); container.replace(StructuredDataKey.POT_DECORATIONS, value -> value.rewrite(itemIdRewriter)); + container.replace(StructuredDataKey.REPAIRABLE, value -> value.rewrite(itemIdRewriter)); } if (mappingData.getBlockMappings() != null) { final Int2IntFunction blockIdRewriter = clientbound ? mappingData::getNewBlockId : mappingData::getOldBlockId;