From 56dfc985d23785b074098a49992db62942e1f948 Mon Sep 17 00:00:00 2001 From: Nassim Jahnke Date: Wed, 6 Apr 2022 22:53:45 +0200 Subject: [PATCH] Add item mappings, rename carpets tag for older versions --- .../Protocol1_18_2To1_19.java | 7 ++++++- .../packets/EntityPackets1_19.java | 16 ++++++++-------- .../viabackwards/data/mapping-1.18to1.19.json | 8 ++++++++ 3 files changed, 22 insertions(+), 9 deletions(-) diff --git a/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_18_2to1_19/Protocol1_18_2To1_19.java b/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_18_2to1_19/Protocol1_18_2To1_19.java index 415ded6f..c7c13fdf 100644 --- a/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_18_2to1_19/Protocol1_18_2To1_19.java +++ b/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_18_2to1_19/Protocol1_18_2To1_19.java @@ -25,6 +25,7 @@ import com.viaversion.viabackwards.protocol.protocol1_18_2to1_19.data.BackwardsM import com.viaversion.viabackwards.protocol.protocol1_18_2to1_19.packets.BlockItemPackets1_19; import com.viaversion.viabackwards.protocol.protocol1_18_2to1_19.packets.EntityPackets1_19; import com.viaversion.viaversion.api.connection.UserConnection; +import com.viaversion.viaversion.api.minecraft.RegistryType; import com.viaversion.viaversion.api.minecraft.entities.Entity1_19Types; import com.viaversion.viaversion.api.protocol.remapper.PacketRemapper; import com.viaversion.viaversion.api.rewriter.EntityRewriter; @@ -113,7 +114,11 @@ public final class Protocol1_18_2To1_19 extends BackwardsProtocol { final byte headYaw = wrapper.read(Type.BYTE); int data = wrapper.read(Type.VAR_INT); diff --git a/common/src/main/resources/assets/viabackwards/data/mapping-1.18to1.19.json b/common/src/main/resources/assets/viabackwards/data/mapping-1.18to1.19.json index 84f7f95e..6768ca22 100644 --- a/common/src/main/resources/assets/viabackwards/data/mapping-1.18to1.19.json +++ b/common/src/main/resources/assets/viabackwards/data/mapping-1.18to1.19.json @@ -584,6 +584,14 @@ "minecraft:reinforced_deepslate": { "id": "minecraft:obsidian", "name": "1.19 Reinforced Deepslate" + }, + "minecraft:echo_shard": { + "id": "minecraft:prismarine_shard", + "name": "1.19 Echo Shard" + }, + "minecraft:recovery_compass": { + "id": "minecraft:compass", + "name": "1.19 Recovery Compass" } }, "particles": {