diff --git a/gradle.properties b/gradle.properties index f40e45a..ca7d3d6 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,5 +1,5 @@ limboapiVersion=1.1.23 -velocityVersion=3.3.0-SNAPSHOT +velocityVersion=3.4.0-SNAPSHOT nettyVersion=4.1.86.Final fastutilVersion=8.5.11 log4jVersion=2.19.0 diff --git a/src/main/java/net/elytrium/limbofilter/LimboFilter.java b/src/main/java/net/elytrium/limbofilter/LimboFilter.java index 44b8758..a88cb76 100644 --- a/src/main/java/net/elytrium/limbofilter/LimboFilter.java +++ b/src/main/java/net/elytrium/limbofilter/LimboFilter.java @@ -297,6 +297,7 @@ public void reload() { new PacketMapping(0x12, ProtocolVersion.MINECRAFT_1_20_2, false), new PacketMapping(0x13, ProtocolVersion.MINECRAFT_1_20_3, false), new PacketMapping(0x16, ProtocolVersion.MINECRAFT_1_20_5, false), + new PacketMapping(0x18, ProtocolVersion.MINECRAFT_1_21_2, false), }) .registerPacket(PacketDirection.CLIENTBOUND, SetEntityMetadata.class, SetEntityMetadata::new, new PacketMapping[]{ new PacketMapping(0x1C, ProtocolVersion.MINIMUM_VERSION, true), @@ -313,6 +314,7 @@ public void reload() { new PacketMapping(0x54, ProtocolVersion.MINECRAFT_1_20_2, true), new PacketMapping(0x56, ProtocolVersion.MINECRAFT_1_20_3, true), new PacketMapping(0x58, ProtocolVersion.MINECRAFT_1_20_5, true), + new PacketMapping(0x5D, ProtocolVersion.MINECRAFT_1_21_2, true), }) .registerPacket(PacketDirection.CLIENTBOUND, SpawnEntity.class, SpawnEntity::new, new PacketMapping[]{ new PacketMapping(0x0E, ProtocolVersion.MINIMUM_VERSION, true), diff --git a/src/main/java/net/elytrium/limbofilter/protocol/data/ItemFrame.java b/src/main/java/net/elytrium/limbofilter/protocol/data/ItemFrame.java index 2e4ef8c..97bff8c 100644 --- a/src/main/java/net/elytrium/limbofilter/protocol/data/ItemFrame.java +++ b/src/main/java/net/elytrium/limbofilter/protocol/data/ItemFrame.java @@ -45,8 +45,10 @@ public static int getID(ProtocolVersion protocolVersion) { return 56; } else if (protocolVersion.compareTo(ProtocolVersion.MINECRAFT_1_20_3) <= 0) { return 57; - } else { + } else if (protocolVersion.compareTo(ProtocolVersion.MINECRAFT_1_21) <= 0) { return 60; + } else { + return 71; } }