Skip to content

Commit f5091f2

Browse files
committed
Updated Upstream (Paper)
Upstream has released updates that appear to apply and compile correctly Paper Changes: PaperMC/Paper@cab3010a Update a whole lot of deprecated annotations PaperMC/Paper@6aad8807 compile fixes and equipOnInteract PaperMC/Paper@c1f5409d Some progress PaperMC/Paper@91a38cdb Finish more item data component API PaperMC/Paper@d8afce2e Split thrown potion PaperMC/Paper@46d21c11 cleanup events PaperMC/Paper@46e7c750 fix legacy serialization with equipOnInteract and add preconditions
1 parent a76ef64 commit f5091f2

File tree

11 files changed

+15
-15
lines changed

11 files changed

+15
-15
lines changed

gradle.properties

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

44
mcVersion = 1.21.5-pre1
5-
paperCommit = f2e7f44275efe36ce30928a7f37f010bbf3f52ec
5+
paperCommit = 46e7c750b3deffdd1f92834860c6ee851f212db7
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 ab71ddde526f80b52169ac7ea6feb9b6c987d8d4..4e516fc82bf4bf03e8d561a629bc712527d1f4bb 100644
8+
index 313af4c93ba978f8727110c293d1588bc1651c71..f89b1218f0162d35384cbffa2d4a93d3fb559f00 100644
99
--- a/src/main/java/org/bukkit/Server.java
1010
+++ b/src/main/java/org/bukkit/Server.java
11-
@@ -2369,6 +2369,18 @@ public interface Server extends PluginMessageRecipient, net.kyori.adventure.audi
11+
@@ -2371,6 +2371,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-
@@ -2996,4 +_,133 @@
3+
@@ -2994,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-
@@ -2705,4 +_,111 @@
3+
@@ -2707,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-
@@ -4278,6 +_,86 @@
3+
@@ -4277,6 +_,86 @@
44
@Nullable
55
public DragonBattle getEnderDragonBattle();
66

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* @return player spawned status
1414
- * @deprecated this functionality no longer exists
1515
*/
16-
- @Deprecated(since = "1.17")
16+
- @Deprecated(since = "1.17", forRemoval = true)
1717
boolean isPlayerSpawned();
1818

1919
/**
@@ -26,7 +26,7 @@
2626
* @param playerSpawned player spawned status
2727
- * @deprecated this functionality no longer exists
2828
*/
29-
- @Deprecated(since = "1.17")
29+
- @Deprecated(since = "1.17", forRemoval = true)
3030
void setPlayerSpawned(boolean playerSpawned);
3131
// Paper start
3232
/**

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
--- a/src/main/java/org/bukkit/entity/Entity.java
22
+++ b/src/main/java/org/bukkit/entity/Entity.java
3-
@@ -1192,4 +_,59 @@
3+
@@ -1193,4 +_,59 @@
44
*/
55
void broadcastHurtAnimation(@NotNull java.util.Collection<Player> players);
66
// Paper end - broadcast hurt animation

purpur-api/paper-patches/files/src/main/java/org/bukkit/event/entity/EntityDamageEvent.java.patch

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
--- a/src/main/java/org/bukkit/event/entity/EntityDamageEvent.java
22
+++ b/src/main/java/org/bukkit/event/entity/EntityDamageEvent.java
3-
@@ -306,7 +_,8 @@
3+
@@ -310,7 +_,8 @@
44
WORLD_BORDER,
55
/**
66
* Damage caused when an entity contacts a block such as a Cactus,

purpur-api/paper-patches/files/src/main/java/org/bukkit/event/entity/EntityPotionEffectEvent.java.patch

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
--- a/src/main/java/org/bukkit/event/entity/EntityPotionEffectEvent.java
22
+++ b/src/main/java/org/bukkit/event/entity/EntityPotionEffectEvent.java
3-
@@ -216,6 +_,12 @@
3+
@@ -218,6 +_,12 @@
44
* When all effects are removed due to a bucket of milk.
55
*/
66
MILK,

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
--- a/src/main/java/org/bukkit/plugin/java/JavaPluginLoader.java
22
+++ b/src/main/java/org/bukkit/plugin/java/JavaPluginLoader.java
3-
@@ -55,6 +_,7 @@
3+
@@ -53,6 +_,7 @@
44
private final Pattern[] fileFilters = new Pattern[]{Pattern.compile("\\.jar$")};
55
private final List<PluginClassLoader> loaders = new CopyOnWriteArrayList<PluginClassLoader>();
66
private final LibraryLoader libraryLoader;

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
@Override
107107
public List<Recipe> getRecipesFor(ItemStack result) {
108108
Preconditions.checkArgument(result != null, "ItemStack cannot be null");
109-
@@ -2947,6 +_,18 @@
109+
@@ -2942,6 +_,18 @@
110110
return CraftServer.this.console.paperConfigurations.createLegacyObject(CraftServer.this.console);
111111
}
112112

@@ -125,15 +125,15 @@
125125
@Override
126126
public void restart() {
127127
CraftServer.this.restart();
128-
@@ -2979,6 +_,7 @@
128+
@@ -2974,6 +_,7 @@
129129
@Override
130130
public double[] getTPS() {
131131
return new double[] {
132132
+ net.minecraft.server.MinecraftServer.getServer().tps5s.getAverage(), // Purpur - Add 5 second tps average in /tps
133133
net.minecraft.server.MinecraftServer.getServer().tps1.getAverage(),
134134
net.minecraft.server.MinecraftServer.getServer().tps5.getAverage(),
135135
net.minecraft.server.MinecraftServer.getServer().tps15.getAverage()
136-
@@ -3186,4 +_,18 @@
136+
@@ -3181,4 +_,18 @@
137137
public void allowPausing(final Plugin plugin, final boolean value) {
138138
this.console.addPluginAllowingSleep(plugin.getName(), value);
139139
}

0 commit comments

Comments
 (0)