Fix broken resource pack API when configured in configuration stage (#12866)

Correctly return the resource pack status from Player#getResourcePackStatus()
when the resource pack was send and accepted during the configuration stage.
This commit is contained in:
metabrix
2025-07-18 23:22:28 +05:00
committed by GitHub
parent aa4ef06748
commit f7c59f914c
9 changed files with 24 additions and 23 deletions

View File

@@ -29,7 +29,7 @@
@Nullable
private volatile PacketListener disconnectListener;
@Nullable
@@ -106,6 +_,41 @@
@@ -106,6 +_,42 @@
private volatile DisconnectionDetails delayedDisconnect;
@Nullable
BandwidthDebugMonitor bandwidthDebugMonitor;
@@ -68,6 +68,7 @@
+ @Nullable public SocketAddress haProxyAddress; // Paper - Add API to get player's proxy address
+ public @Nullable java.util.Optional<net.minecraft.network.chat.Component> legacySavedLoginEventResultOverride; // Paper - playerloginevent
+ public @Nullable net.minecraft.server.level.ServerPlayer savedPlayerForLoginEventLegacy; // Paper - playerloginevent
+ public @Nullable org.bukkit.event.player.PlayerResourcePackStatusEvent.Status resourcePackStatus; // Paper
public Connection(PacketFlow receiving) {
this.receiving = receiving;