Skip to content

Commit

Permalink
remove extra packet creation
Browse files Browse the repository at this point in the history
  • Loading branch information
TropheusJ committed Jul 9, 2024
1 parent 58d3722 commit c7d45c9
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ public void add(Packet<? super ClientGamePacketListener> packet) {
}

public void add(CustomPacketPayload payload) {
Packet<ClientCommonPacketListener> packet = ServerPlayNetworking.createS2CPacket(payload);
this.add(new ClientboundCustomPayloadPacket(payload));
}
}
Expand Down

0 comments on commit c7d45c9

Please sign in to comment.