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