Skip to content

Commit

Permalink
new join packets
Browse files Browse the repository at this point in the history
  • Loading branch information
AltronMaxX committed Dec 24, 2023
1 parent 3d4f135 commit 98b8bd2
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand All @@ -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();
Expand Down

0 comments on commit 98b8bd2

Please sign in to comment.