From 5ef94d94e609fa7569a15342d295c388a1c43433 Mon Sep 17 00:00:00 2001 From: KennyTV Date: Thu, 2 Jul 2020 16:00:17 +0200 Subject: [PATCH] Rewrite item nbt attributes --- .../protocol1_15_2to1_16/packets/BlockItemPackets1_16.java | 3 +++ pom.xml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_15_2to1_16/packets/BlockItemPackets1_16.java b/core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_15_2to1_16/packets/BlockItemPackets1_16.java index 88197dae..03b28b84 100644 --- a/core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_15_2to1_16/packets/BlockItemPackets1_16.java +++ b/core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_15_2to1_16/packets/BlockItemPackets1_16.java @@ -22,6 +22,7 @@ import us.myles.ViaVersion.protocols.protocol1_15to1_14_4.types.Chunk1_15Type; import us.myles.ViaVersion.protocols.protocol1_16to1_15_2.ClientboundPackets1_16; import us.myles.ViaVersion.protocols.protocol1_16to1_15_2.data.MappingData; import us.myles.ViaVersion.protocols.protocol1_16to1_15_2.data.RecipeRewriter1_16; +import us.myles.ViaVersion.protocols.protocol1_16to1_15_2.packets.InventoryPackets; import us.myles.ViaVersion.protocols.protocol1_16to1_15_2.types.Chunk1_16Type; import us.myles.ViaVersion.protocols.protocol1_9_3to1_9_1_2.storage.ClientWorld; import us.myles.ViaVersion.util.CompactArrayUtil; @@ -343,6 +344,7 @@ public class BlockItemPackets1_16 extends nl.matsv.viabackwards.api.rewriters.It } } + InventoryPackets.newToOldAttributes(item); enchantmentRewriter.handleToClient(item); return item; } @@ -367,6 +369,7 @@ public class BlockItemPackets1_16 extends nl.matsv.viabackwards.api.rewriters.It } } + InventoryPackets.oldToNewAttributes(item); enchantmentRewriter.handleToServer(item); return item; } diff --git a/pom.xml b/pom.xml index 503995e5..3cf4b408 100644 --- a/pom.xml +++ b/pom.xml @@ -65,7 +65,7 @@ us.myles viaversion - 3.0.2-SNAPSHOT + 3.0.2-20w27a provided