Skip to content

Commit f0464f3

Browse files
Tig3r98CodeCrafter47
authored andcommitted
Velocity: Fix 1.21.5 Update Teams packet ID
1 parent 72aa872 commit f0464f3

File tree

1 file changed

+3
-16
lines changed

1 file changed

+3
-16
lines changed

velocity/src/main/java/codecrafter47/bungeetablistplus/util/ReflectionUtil.java

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,7 @@
2626
import java.lang.reflect.Method;
2727
import java.util.function.Supplier;
2828

29-
import static com.velocitypowered.api.network.ProtocolVersion.MINECRAFT_1_12;
30-
import static com.velocitypowered.api.network.ProtocolVersion.MINECRAFT_1_12_1;
31-
import static com.velocitypowered.api.network.ProtocolVersion.MINECRAFT_1_13;
32-
import static com.velocitypowered.api.network.ProtocolVersion.MINECRAFT_1_14;
33-
import static com.velocitypowered.api.network.ProtocolVersion.MINECRAFT_1_15;
34-
import static com.velocitypowered.api.network.ProtocolVersion.MINECRAFT_1_17;
35-
import static com.velocitypowered.api.network.ProtocolVersion.MINECRAFT_1_19_1;
36-
import static com.velocitypowered.api.network.ProtocolVersion.MINECRAFT_1_19_3;
37-
import static com.velocitypowered.api.network.ProtocolVersion.MINECRAFT_1_19_4;
38-
import static com.velocitypowered.api.network.ProtocolVersion.MINECRAFT_1_20_2;
39-
import static com.velocitypowered.api.network.ProtocolVersion.MINECRAFT_1_20_3;
40-
import static com.velocitypowered.api.network.ProtocolVersion.MINECRAFT_1_20_5;
41-
import static com.velocitypowered.api.network.ProtocolVersion.MINECRAFT_1_21_2;
42-
import static com.velocitypowered.api.network.ProtocolVersion.MINECRAFT_1_8;
43-
import static com.velocitypowered.api.network.ProtocolVersion.MINECRAFT_1_9;
29+
import static com.velocitypowered.api.network.ProtocolVersion.*;
4430

4531
public class ReflectionUtil {
4632

@@ -90,7 +76,8 @@ public static void injectTeamPacketRegistry() {
9076
(StateRegistry.PacketMapping) packetMapping.newInstance(0x5C, MINECRAFT_1_20_2, null, false),
9177
(StateRegistry.PacketMapping) packetMapping.newInstance(0x5E, MINECRAFT_1_20_3, null, false),
9278
(StateRegistry.PacketMapping) packetMapping.newInstance(0x60, MINECRAFT_1_20_5, null, false),
93-
(StateRegistry.PacketMapping) packetMapping.newInstance(0x67, MINECRAFT_1_21_2, null, false)
79+
(StateRegistry.PacketMapping) packetMapping.newInstance(0x67, MINECRAFT_1_21_2, null, false),
80+
(StateRegistry.PacketMapping) packetMapping.newInstance(0x66, MINECRAFT_1_21_5, null, false)
9481
});
9582
return;
9683
} catch (Exception e) {

0 commit comments

Comments
 (0)