From 520552fe6963ae6542508b351ce3e60bd5e69ce7 Mon Sep 17 00:00:00 2001 From: Nassim Jahnke Date: Wed, 3 Jul 2024 11:31:02 +0200 Subject: [PATCH] Properly swift sneak in lore --- .../rewriter/BlockItemPacketRewriter1_19.java | 12 ++++++++++++ .../viabackwards/data/translation-mappings.json | 3 +++ 2 files changed, 15 insertions(+) diff --git a/common/src/main/java/com/viaversion/viabackwards/protocol/v1_19to1_18_2/rewriter/BlockItemPacketRewriter1_19.java b/common/src/main/java/com/viaversion/viabackwards/protocol/v1_19to1_18_2/rewriter/BlockItemPacketRewriter1_19.java index 7db59bf2..a9254766 100644 --- a/common/src/main/java/com/viaversion/viabackwards/protocol/v1_19to1_18_2/rewriter/BlockItemPacketRewriter1_19.java +++ b/common/src/main/java/com/viaversion/viabackwards/protocol/v1_19to1_18_2/rewriter/BlockItemPacketRewriter1_19.java @@ -19,6 +19,7 @@ package com.viaversion.viabackwards.protocol.v1_19to1_18_2.rewriter; import com.viaversion.nbt.tag.CompoundTag; import com.viaversion.viabackwards.api.rewriters.BackwardsItemRewriter; +import com.viaversion.viabackwards.api.rewriters.EnchantmentRewriter; import com.viaversion.viabackwards.protocol.v1_19to1_18_2.Protocol1_19To1_18_2; import com.viaversion.viabackwards.protocol.v1_19to1_18_2.storage.LastDeathPosition; import com.viaversion.viaversion.api.connection.UserConnection; @@ -42,6 +43,8 @@ import com.viaversion.viaversion.util.MathUtil; public final class BlockItemPacketRewriter1_19 extends BackwardsItemRewriter { + private final EnchantmentRewriter enchantmentRewriter = new EnchantmentRewriter(this); + public BlockItemPacketRewriter1_19(final Protocol1_19To1_18_2 protocol) { super(protocol, Types.ITEM1_13_2, Types.ITEM1_13_2_ARRAY); } @@ -208,6 +211,11 @@ public final class BlockItemPacketRewriter1_19 extends BackwardsItemRewriter