Skip to content

Commit 470d97e

Browse files
authored
Minecraft 1.21.6 and Velocity b513+ support (#110)
1 parent 5d10a82 commit 470d97e

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/main/java/net/elytrium/limbofilter/LimboFilter.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,7 @@ public void reload() {
298298
new PacketMapping(0x13, ProtocolVersion.MINECRAFT_1_20_3, false),
299299
new PacketMapping(0x16, ProtocolVersion.MINECRAFT_1_20_5, false),
300300
new PacketMapping(0x18, ProtocolVersion.MINECRAFT_1_21_2, false),
301+
new PacketMapping(0x19, ProtocolVersion.MINECRAFT_1_21_6, false),
301302
})
302303
.registerPacket(PacketDirection.CLIENTBOUND, SetEntityMetadata.class, null, new PacketMapping[]{
303304
new PacketMapping(0x1C, ProtocolVersion.MINIMUM_VERSION, true),

src/main/java/net/elytrium/limbofilter/protocol/data/ItemFrame.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,10 @@ public static int getID(ProtocolVersion protocolVersion) {
4949
return 60;
5050
} else if (protocolVersion.compareTo(ProtocolVersion.MINECRAFT_1_21_2) <= 0) {
5151
return 71;
52-
} else {
52+
} else if (protocolVersion.compareTo(ProtocolVersion.MINECRAFT_1_21_5) <= 0) {
5353
return 70;
54+
} else {
55+
return 71;
5456
}
5557
}
5658

@@ -65,8 +67,10 @@ public static byte getMetadataIndex(ProtocolVersion protocolVersion) {
6567
return 6;
6668
} else if (protocolVersion.compareTo(ProtocolVersion.MINECRAFT_1_16_4) <= 0) {
6769
return 7;
68-
} else {
70+
} else if (protocolVersion.compareTo(ProtocolVersion.MINECRAFT_1_21_5) <= 0) {
6971
return 8;
72+
} else {
73+
return 9;
7074
}
7175
}
7276

0 commit comments

Comments
 (0)