From 796a42c981c84b2e9a15e5dce7a4105137b532cd Mon Sep 17 00:00:00 2001 From: KennyTV Date: Fri, 29 May 2020 20:36:40 +0200 Subject: [PATCH] Send new 20w22a tags --- .../protocols/protocol1_16to1_15_2/Protocol1_16To1_15_2.java | 2 ++ .../protocols/protocol1_16to1_15_2/packets/EntityPackets.java | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_16to1_15_2/Protocol1_16To1_15_2.java b/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_16to1_15_2/Protocol1_16To1_15_2.java index 7e441fcd2..116849c81 100644 --- a/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_16to1_15_2/Protocol1_16To1_15_2.java +++ b/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_16to1_15_2/Protocol1_16To1_15_2.java @@ -184,6 +184,8 @@ public class Protocol1_16To1_15_2 extends Protocol { tagRewriter.addTag(TagType.BLOCK, "minecraft:climbable", 160, 241, 658); tagRewriter.addTag(TagType.BLOCK, "minecraft:fire", 142); tagRewriter.addTag(TagType.BLOCK, "minecraft:campfires", 679); + tagRewriter.addTag(TagType.BLOCK, "minecraft:fence_gates", 242, 467, 468, 469, 470, 471); + tagRewriter.addTag(TagType.BLOCK, "minecraft:unstable_bottom_center", 242, 467, 468, 469, 470, 471); tagRewriter.addTag(TagType.ITEM, "minecraft:beacon_payment_items", 529, 530, 531, 760); // The client crashes if we don't send all tags it may use tagRewriter.addEmptyTag(TagType.BLOCK, "minecraft:guarded_by_piglins"); diff --git a/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_16to1_15_2/packets/EntityPackets.java b/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_16to1_15_2/packets/EntityPackets.java index 02be7a2d1..3dc778e4e 100644 --- a/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_16to1_15_2/packets/EntityPackets.java +++ b/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_16to1_15_2/packets/EntityPackets.java @@ -104,7 +104,7 @@ public class EntityPackets { public void registerMap() { map(Type.INT); // Entity ID map(Type.UNSIGNED_BYTE); // Gamemode - map(Type.NOTHING, new ValueTransformer(Type.STRING_ARRAY) { // World list + map(Type.NOTHING, new ValueTransformer(Type.STRING_ARRAY) { // World list - only used for command completion @Override public String[] transform(PacketWrapper wrapper, Void input) throws Exception { return STRINGS;