Skip to content

Commit

Permalink
migrated pre-hard-fork patch 0007-expose-constructor-for-player-info-…
Browse files Browse the repository at this point in the history
…update-packet.patch
  • Loading branch information
TrainmasterHD committed Jan 5, 2025
1 parent 1300baf commit ae56afd
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 24 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
--- a/net/minecraft/network/protocol/game/ClientboundPlayerInfoUpdatePacket.java
+++ b/net/minecraft/network/protocol/game/ClientboundPlayerInfoUpdatePacket.java
@@ -50,6 +_,13 @@
}
// Paper end - Add Listing API for Player

+ // Cheetah start - Expose constructor for player info update packet
+ public ClientboundPlayerInfoUpdatePacket(Action action, Entry entry) {
+ this.actions = EnumSet.of(action);
+ this.entries = List.of(entry);
+ }
+ // Cheetah end
+
public static ClientboundPlayerInfoUpdatePacket createPlayerInitializing(Collection<ServerPlayer> players) {
EnumSet<ClientboundPlayerInfoUpdatePacket.Action> set = EnumSet.of(
ClientboundPlayerInfoUpdatePacket.Action.ADD_PLAYER,

This file was deleted.

0 comments on commit ae56afd

Please sign in to comment.