From 98b8bd221be4d3dbca9f79af264fec5507bcf85c Mon Sep 17 00:00:00 2001 From: AltronMaxX Date: Mon, 25 Dec 2023 02:33:11 +0400 Subject: [PATCH] new join packets --- .../main/java/net/elytrium/limboapi/server/LimboImpl.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugin/src/main/java/net/elytrium/limboapi/server/LimboImpl.java b/plugin/src/main/java/net/elytrium/limboapi/server/LimboImpl.java index b22f56c7..56d44906 100644 --- a/plugin/src/main/java/net/elytrium/limboapi/server/LimboImpl.java +++ b/plugin/src/main/java/net/elytrium/limboapi/server/LimboImpl.java @@ -184,6 +184,7 @@ protected void refresh() { JoinGame joinGame1194 = this.createJoinGamePacket(ProtocolVersion.MINECRAFT_1_19_4); JoinGame joinGame120 = this.createJoinGamePacket(ProtocolVersion.MINECRAFT_1_20); JoinGame joinGame1202 = this.createJoinGamePacket(ProtocolVersion.MINECRAFT_1_20_2); + JoinGame joinGame1203 = this.createJoinGamePacket(ProtocolVersion.MINECRAFT_1_20_3); this.joinPackets = this.plugin.createPreparedPacket() .prepare(legacyJoinGame, ProtocolVersion.MINIMUM_VERSION, ProtocolVersion.MINECRAFT_1_15_2) @@ -193,7 +194,8 @@ protected void refresh() { .prepare(joinGame1191, ProtocolVersion.MINECRAFT_1_19_1, ProtocolVersion.MINECRAFT_1_19_3) .prepare(joinGame1194, ProtocolVersion.MINECRAFT_1_19_4, ProtocolVersion.MINECRAFT_1_19_4) .prepare(joinGame120, ProtocolVersion.MINECRAFT_1_20) - .prepare(joinGame1202, ProtocolVersion.MINECRAFT_1_20_2); + .prepare(joinGame1202, ProtocolVersion.MINECRAFT_1_20_2) + .prepare(joinGame1203, ProtocolVersion.MINECRAFT_1_20_3); this.fastRejoinPackets = this.plugin.createPreparedPacket(); this.createFastClientServerSwitch(legacyJoinGame, ProtocolVersion.MINECRAFT_1_7_2) @@ -212,6 +214,8 @@ protected void refresh() { .forEach(minecraftPacket -> this.fastRejoinPackets.prepare(minecraftPacket, ProtocolVersion.MINECRAFT_1_20)); this.createFastClientServerSwitch(joinGame1202, ProtocolVersion.MINECRAFT_1_20_2) .forEach(minecraftPacket -> this.fastRejoinPackets.prepare(minecraftPacket, ProtocolVersion.MINECRAFT_1_20_2)); + this.createFastClientServerSwitch(joinGame1203, ProtocolVersion.MINECRAFT_1_20_3) + .forEach(minecraftPacket -> this.fastRejoinPackets.prepare(minecraftPacket, ProtocolVersion.MINECRAFT_1_20_3)); this.safeRejoinPackets = this.plugin.createPreparedPacket().prepare(this.createSafeClientServerSwitch(legacyJoinGame)); this.postJoinPackets = this.plugin.createPreparedPacket();