Skip to content

Commit

Permalink
Remove unnecessary JoinGamePacket preparing
Browse files Browse the repository at this point in the history
  • Loading branch information
UserNugget committed May 11, 2024
1 parent 417b257 commit f0b45a4
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,6 @@ protected void refresh() {
JoinGamePacket joinGame1191 = this.createJoinGamePacket(ProtocolVersion.MINECRAFT_1_19_1);
JoinGamePacket joinGame1194 = this.createJoinGamePacket(ProtocolVersion.MINECRAFT_1_19_4);
JoinGamePacket joinGame120 = this.createJoinGamePacket(ProtocolVersion.MINECRAFT_1_20);
JoinGamePacket joinGame1205 = this.createJoinGamePacket(ProtocolVersion.MINECRAFT_1_20_5);

this.joinPackets = this.plugin.createPreparedPacket()
.prepare(legacyJoinGame, ProtocolVersion.MINIMUM_VERSION, ProtocolVersion.MINECRAFT_1_15_2)
Expand All @@ -201,8 +200,7 @@ protected void refresh() {
.prepare(joinGame119, ProtocolVersion.MINECRAFT_1_19, ProtocolVersion.MINECRAFT_1_19)
.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, ProtocolVersion.MINECRAFT_1_20_3)
.prepare(joinGame1205, ProtocolVersion.MINECRAFT_1_20_5);
.prepare(joinGame120, ProtocolVersion.MINECRAFT_1_20);

this.fastRejoinPackets = this.plugin.createPreparedPacket();
this.createFastClientServerSwitch(legacyJoinGame, ProtocolVersion.MINECRAFT_1_7_2)
Expand Down

0 comments on commit f0b45a4

Please sign in to comment.