Skip to content

Commit cb8448f

Browse files
committed
Updated Upstream (Paper)
Upstream has released updates that appear to apply and compile correctly Paper Changes: PaperMC/Paper@102c8bbc Add config for updating equipment on player actions (#12275) PaperMC/Paper@f0388e2f Call EntityPushedByEntityAttackEvent for Mace AoE (#12257) PaperMC/Paper@c37b890c More deferred requireNonNull message creation PaperMC/Paper@310f5229 Add unsupported config option and internal API to simplify remote item matching PaperMC/Paper@6ea42025 Send all attributes on respawn (#12274) PaperMC/Paper@2d3a1385 [ci/skip] Refine recipe management API documentation. (#12287) PaperMC/Paper@aaaeb4e1 [ci/skip] Make compilation logs actually readable (#12276) PaperMC/Paper@bb1beda6 feat: add event to wind charge explode (#12248) PaperMC/Paper@9f004614 Update a whole lot of deprecated annotations PaperMC/Paper@72f13f8b [ci/skip] Mention API Checks for CONTRIBUTING.md (#12315) PaperMC/Paper@7cc6cb50 Check for trailing input in ItemFactory#createItemStack (#12312) PaperMC/Paper@f49d18df Add get/set customName to Skull block (#12302) PaperMC/Paper@894631f0 Make advancement ordering predictable (#12292) PaperMC/Paper@2aad131e Add config option for command spam whitelist PaperMC/Paper@bb3b7e69 Fix annotation mistakes PaperMC/Paper@058455e4 InventoryView QOL open method (#12282) PaperMC/Paper@f2258582 Fix firework entity not being removed when FireworkExplodeEvent is cancelled (#12268) PaperMC/Paper@7819df10 Add getHeight method to ChunkData (#12311) PaperMC/Paper@37b9ca1f Add flush parameter to World#save (#12330) PaperMC/Paper@515e12ca Check if BUNDLE_CONTENTS is present in InventoryClickEvent (#12321) PaperMC/Paper@5a6ab97b Add config to remove player as vehicle restriction in /ride (#12327) PaperMC/Paper@c467df95 Add ItemStack#copyDataFrom (#12224) PaperMC/Paper@78af68b6 fix some ticket related decompile errors PaperMC/Paper@ce3ede47 Server now says yes to movement PaperMC/Paper@eafb6c29 Merge remote-tracking branch 'up/main' into update/1.21.5 PaperMC/Paper@5ef8349e Merge remote-tracking branch 'up/update/1.21.5' into update/1.21.5 PaperMC/Paper@1111f183 Update remote item matching option PaperMC/Paper@58554542 Fix oopsie PaperMC/Paper@b8078d38 Update to 1.21.5-rc2 PaperMC/Paper@a776d7a9 update entity effect PaperMC/Paper@67cc0e5f bump built-in datapack version PaperMC/Paper@28daa6ce update adventure codecs, fixes click and hover events PaperMC/Paper@e50bb66a make Phantom#anchorPoint nullable
1 parent c8d8532 commit cb8448f

File tree

11 files changed

+26
-35
lines changed

11 files changed

+26
-35
lines changed

gradle.properties

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
group = org.purpurmc.purpur
22
version = 1.21.5-R0.1-SNAPSHOT
33

4-
mcVersion = 1.21.5-rc1
5-
paperCommit = 92abbc6ccc73e4da969c3aa6d71efd880197412e
4+
mcVersion = 1.21.5-rc2
5+
paperCommit = e50bb66a012d256305c9904330200fa2a634b723
66

77
org.gradle.configuration-cache = true
88
org.gradle.caching = true

purpur-api/paper-patches/features/0002-Purpur-config-files.patch

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ Subject: [PATCH] Purpur config files
55

66

77
diff --git a/src/main/java/org/bukkit/Server.java b/src/main/java/org/bukkit/Server.java
8-
index 313af4c93ba978f8727110c293d1588bc1651c71..f89b1218f0162d35384cbffa2d4a93d3fb559f00 100644
8+
index 53ad1696d02afbebf27663dd753fa93e41cfeb4e..cec387842895d617b0dcf9158f080fe03e08a926 100644
99
--- a/src/main/java/org/bukkit/Server.java
1010
+++ b/src/main/java/org/bukkit/Server.java
11-
@@ -2371,6 +2371,18 @@ public interface Server extends PluginMessageRecipient, net.kyori.adventure.audi
11+
@@ -2369,6 +2369,18 @@ public interface Server extends PluginMessageRecipient, net.kyori.adventure.audi
1212
}
1313
// Paper end
1414

purpur-api/paper-patches/files/src/main/java/org/bukkit/Bukkit.java.patch

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
--- a/src/main/java/org/bukkit/Bukkit.java
22
+++ b/src/main/java/org/bukkit/Bukkit.java
3-
@@ -2994,4 +_,133 @@
3+
@@ -2997,4 +_,133 @@
44
public static void restart() {
55
server.restart();
66
}

purpur-api/paper-patches/files/src/main/java/org/bukkit/Server.java.patch

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
--- a/src/main/java/org/bukkit/Server.java
22
+++ b/src/main/java/org/bukkit/Server.java
3-
@@ -2707,4 +_,111 @@
3+
@@ -2705,4 +_,111 @@
44
*/
55
void allowPausing(@NotNull org.bukkit.plugin.Plugin plugin, boolean value);
66
// Paper end - API to check if the server is sleeping

purpur-api/paper-patches/files/src/main/java/org/bukkit/World.java.patch

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
--- a/src/main/java/org/bukkit/World.java
22
+++ b/src/main/java/org/bukkit/World.java
3-
@@ -4277,6 +_,86 @@
3+
@@ -4283,6 +_,86 @@
44
@Nullable
55
public DragonBattle getEnderDragonBattle();
66

purpur-api/paper-patches/files/src/main/java/org/bukkit/inventory/ItemStack.java.patch

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
--- a/src/main/java/org/bukkit/inventory/ItemStack.java
22
+++ b/src/main/java/org/bukkit/inventory/ItemStack.java
3-
@@ -21,6 +_,13 @@
3+
@@ -22,6 +_,13 @@
44
import org.bukkit.persistence.PersistentDataContainer;
55
import org.jetbrains.annotations.NotNull;
66
import org.jetbrains.annotations.Nullable;
@@ -14,7 +14,7 @@
1414

1515
/**
1616
* Represents a stack of items.
17-
@@ -1345,4 +_,482 @@
17+
@@ -1371,4 +_,482 @@
1818
return this.craftDelegate.matchesWithoutData(item, excludeTypes, ignoreCount);
1919
}
2020
// Paper end - data component API

purpur-server/build.gradle.kts.patch

+6-15
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,22 @@
11
--- a/paper-server/build.gradle.kts
22
+++ b/paper-server/build.gradle.kts
3-
@@ -18,11 +_,21 @@
3+
@@ -24,6 +_,16 @@
4+
// oldPaperCommit = "f4f275519f7c1fbe9db173b7144a4fe81440e365"
5+
//}
46

5-
paperweight {
6-
minecraftVersion = providers.gradleProperty("mcVersion")
7-
- gitFilePatches = false
8-
-
9-
- updatingMinecraft {
10-
- oldPaperCommit = "f4f275519f7c1fbe9db173b7144a4fe81440e365"
11-
+ //gitFilePatches = true
12-
+
13-
+ //updatingMinecraft {
14-
+ // oldPaperCommit = "f4f275519f7c1fbe9db173b7144a4fe81440e365"
15-
+ //}
16-
+
177
+ val purpur = forks.register("purpur") {
188
+ upstream.patchDir("paperServer") {
199
+ upstreamPath = "paper-server"
2010
+ excludes = setOf("src/minecraft", "patches", "build.gradle.kts")
2111
+ patchesDir = rootDirectory.dir("purpur-server/paper-patches")
2212
+ outputDir = rootDirectory.dir("paper-server")
2313
+ }
24-
}
14+
+ }
2515
+ activeFork = purpur
26-
16+
+
2717
spigot {
2818
buildDataRef = "3edaf46ec1eed4115ce1b18d2846cded42577e42"
19+
packageVersion = "v1_21_R3" // also needs to be updated in MappingEnvironment
2920
@@ -104,7 +_,21 @@
3021
}
3122
}

purpur-server/paper-patches/features/0005-Add-EntityTeleportHinderedEvent.patch

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public License
1717
along with this program. If not, see <https://www.gnu.org/licenses/>.
1818

1919
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java
20-
index 65c4c0690874c29814098448b6cc6077a1e8c566..549f6fcf5ded0563e665673a797fa92496786c3b 100644
20+
index e7fec5d2d54dc02bad76cb4100f597208ae46912..2344ee5f7c76d4c0eff375826e75cb97e104c3f1 100644
2121
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java
2222
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java
2323
@@ -264,6 +264,7 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity {
@@ -29,18 +29,18 @@ index 65c4c0690874c29814098448b6cc6077a1e8c566..549f6fcf5ded0563e665673a797fa924
2929
}
3030

3131
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
32-
index d53cc5f0952be042629cd8e6e319157d0afb14c7..9b72d1e90ceb531088ace34ff11db12a4bcba2b7 100644
32+
index 9bea9f41cbffaacb77b27636086c57b6f8cb17d7..dcdf06516b0bcfaa191ed82f4236602710d11e44 100644
3333
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
3434
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
35-
@@ -1420,6 +1420,7 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
35+
@@ -1422,6 +1422,7 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
3636
// Paper start - Teleport passenger API
3737
// Don't allow teleporting between worlds while keeping passengers
3838
if (ignorePassengers && entity.isVehicle() && location.getWorld() != this.getWorld()) {
3939
+ if (!new org.purpurmc.purpur.event.entity.EntityTeleportHinderedEvent(entity.getBukkitEntity(), org.purpurmc.purpur.event.entity.EntityTeleportHinderedEvent.Reason.IS_VEHICLE, cause).callEvent()) // Purpur - Add EntityTeleportHinderedEvent
4040
return false;
4141
}
4242

43-
@@ -1441,6 +1442,7 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
43+
@@ -1443,6 +1444,7 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
4444
}
4545

4646
if (entity.isVehicle() && !ignorePassengers) { // Paper - Teleport API

purpur-server/paper-patches/files/src/main/java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java.patch

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java
22
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java
3-
@@ -273,6 +_,7 @@
3+
@@ -276,6 +_,7 @@
44
@Override
55
public void recalculatePermissions() {
66
this.perm.recalculatePermissions();

purpur-server/paper-patches/files/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java.patch

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
22
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
3-
@@ -590,10 +_,15 @@
3+
@@ -592,10 +_,15 @@
44

55
@Override
66
public void setPlayerListName(String name) {
@@ -17,7 +17,7 @@
1717
if (this.getHandle().connection == null) return; // Paper - Updates are possible before the player has fully joined
1818
for (ServerPlayer player : (List<ServerPlayer>) this.server.getHandle().players) {
1919
if (player.getBukkitEntity().canSee(this)) {
20-
@@ -2730,6 +_,28 @@
20+
@@ -2732,6 +_,28 @@
2121
return this.getHandle().getAbilities().walkingSpeed * 2f;
2222
}
2323

@@ -46,9 +46,9 @@
4646
private void validateSpeed(float value) {
4747
Preconditions.checkArgument(value <= 1f && value >= -1f, "Speed value (%s) need to be between -1f and 1f", value);
4848
}
49-
@@ -3576,4 +_,76 @@
50-
public void setDeathScreenScore(final int score) {
51-
getHandle().setScore(score);
49+
@@ -3594,4 +_,76 @@
50+
public void setSimplifyContainerDesyncCheck(final boolean simplifyContainerDesyncCheck) {
51+
this.simplifyContainerDesyncCheck = simplifyContainerDesyncCheck;
5252
}
5353
+
5454
+ // Purpur start - Purpur client support

purpur-server/paper-patches/files/src/main/java/org/bukkit/craftbukkit/inventory/CraftItemStack.java.patch

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
--- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftItemStack.java
22
+++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftItemStack.java
3-
@@ -649,4 +_,285 @@
3+
@@ -669,4 +_,285 @@
44
}
55

66
// Paper end - data component API

0 commit comments

Comments
 (0)