-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
migrated pre-hard-fork patch 0007-expose-constructor-for-player-info-…
…update-packet.patch
- Loading branch information
1 parent
1300baf
commit ae56afd
Showing
2 changed files
with
16 additions
and
24 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
.../sources/net/minecraft/network/protocol/game/ClientboundPlayerInfoUpdatePacket.java.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, |
24 changes: 0 additions & 24 deletions
24
patches/server/0007-expose-constructor-for-player-info-update-packet.patch
This file was deleted.
Oops, something went wrong.