Updated Upstream (Paper)

Upstream has released updates that appear to apply and compile correctly

Paper Changes:
PaperMC/Paper@b4466ec9 Dialog API (#12671)
This commit is contained in:
granny
2025-07-06 16:56:20 -07:00
parent 09ea9cb927
commit 4d5a8e6ebd
7 changed files with 36 additions and 36 deletions

View File

@@ -1,6 +1,6 @@
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
@@ -562,10 +_,15 @@
@@ -682,10 +_,15 @@
@Override
public void setPlayerListName(String name) {
@@ -17,8 +17,8 @@
if (this.getHandle().connection == null) return; // Paper - Updates are possible before the player has fully joined
for (ServerPlayer player : (List<ServerPlayer>) this.server.getHandle().players) {
if (player.getBukkitEntity().canSee(this)) {
@@ -2655,6 +_,28 @@
return this.getHandle().getAbilities().walkingSpeed * 2f;
@@ -2793,6 +_,28 @@
this.getHandle().getAttribute(Attributes.MOVEMENT_SPEED).setBaseValue(player.getAbilities().walkingSpeed); // SPIGOT-5833: combination of the two in 1.16+
}
+ // Purpur start - OfflinePlayer API
@@ -46,9 +46,9 @@
private void validateSpeed(float value) {
Preconditions.checkArgument(value <= 1f && value >= -1f, "Speed value (%s) need to be between -1f and 1f", value);
}
@@ -3503,4 +_,76 @@
public PlayerGameConnection getConnection() {
return this.getHandle().connection.playerGameConnection;
@@ -3601,4 +_,76 @@
this(new ShortArraySet(), new ArrayList<>());
}
}
+
+ // Purpur start - Purpur client support