Skip to content

Commit 110b3a7

Browse files
committed
Updated Upstream (Paper)
Upstream has released updates that appear to apply and compile correctly Paper Changes: PaperMC/Paper@dfc38843 deprecate bubble column methods PaperMC/Paper@480b2ed0 use more specific codecs in click event actions PaperMC/Paper@e21bf450 fix chunk-gc plugin ticket config PaperMC/Paper@32fef5d2 do the fix in Ticket record getter instead PaperMC/Paper@0d8dad65 Quick cursory update of ItemStackDataComponentTest PaperMC/Paper@0f1f084b Update ItemStackDataComponentEqualsTest PaperMC/Paper@34dfd5e8 add perm for test command, fix some tests PaperMC/Paper@740abe1a Update CraftSmithingTransformRecipe PaperMC/Paper@de93fda5 Merge branch 'update/1.21.5' of github.com:PaperMC/Paper into update/1.21.5 PaperMC/Paper@c02ad46d Update SmithingTripRecipe PaperMC/Paper@0a5ea70a Also bundle mc source change from last commit PaperMC/Paper@e7534177 Some marginal work on DataComponents PaperMC/Paper@db35db76 Implement legacy custom biome PaperMC/Paper@18b06e38 Implement plugin tickets PaperMC/Paper@c7b22702 Implement custom legacy biome PaperMC/Paper@77f07c89 Call drop events for dropping items PaperMC/Paper@eac69a96 Pray my thesis is better than this PaperMC/Paper@c5231f91 Update to 1.21.5 PaperMC/Paper@a3f71b0f update some magic values PaperMC/Paper@704cc38c Add some missing adapters PaperMC/Paper@536b9b4b fix some more tests PaperMC/Paper@985ebcfe Quick handling for ChickenVariant data component, remove dupe PaperMC/Paper@39eafa2a implement wolf sound variants PaperMC/Paper@c78f5631 make class node tests have a display name PaperMC/Paper@3be8a83c Allow picking items from inventory PaperMC/Paper@95beb8c0 register wolf sound variant
1 parent 9dc9fd3 commit 110b3a7

File tree

8 files changed

+28
-28
lines changed

8 files changed

+28
-28
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-rc2
5-
paperCommit = e50bb66a012d256305c9904330200fa2a634b723
4+
mcVersion = 1.21.5
5+
paperCommit = 95beb8c0bc785cf6bdd8ce9de097666cb572deb9
66

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

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-
@@ -1193,4 +_,59 @@
3+
@@ -1214,4 +_,59 @@
44
*/
55
void broadcastHurtAnimation(@NotNull java.util.Collection<Player> players);
66
// Paper end - broadcast hurt animation
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
--- a/src/main/java/org/bukkit/entity/Wolf.java
22
+++ b/src/main/java/org/bukkit/entity/Wolf.java
3-
@@ -110,4 +_,20 @@
4-
return RegistryAccess.registryAccess().getRegistry(RegistryKey.WOLF_VARIANT).getOrThrow(NamespacedKey.minecraft(key));
3+
@@ -138,4 +_,20 @@
4+
return RegistryAccess.registryAccess().getRegistry(RegistryKey.WOLF_SOUND_VARIANT).getOrThrow(NamespacedKey.minecraft(key));
55
}
66
}
77
+
@@ -11,13 +11,13 @@
1111
+ *
1212
+ * @return whether the wolf is rabid
1313
+ */
14-
+ public boolean isRabid();
14+
+ boolean isRabid();
1515
+
1616
+ /**
1717
+ * Sets this wolf to be rabid or not
1818
+ *
1919
+ * @param rabid whether the wolf should be rabid
2020
+ */
21-
+ public void setRabid(boolean rabid);
21+
+ void setRabid(boolean rabid);
2222
+ // Purpur end
2323
}

purpur-server/minecraft-patches/features/0001-Ridables.patch

+7-7
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ index 6dc490bf9d032b5ed2d7bd458bffd3471f54ff06..cf26a10e4ccf0f28817ce53b3c5bf1df
6262

6363
private void updatePlayerAttributes() {
6464
diff --git a/net/minecraft/server/network/ServerGamePacketListenerImpl.java b/net/minecraft/server/network/ServerGamePacketListenerImpl.java
65-
index ab2e6655e07a667d8ac413c85aaf3743a38db2e0..96b61192d9ab70857427cea65d4ddd0a4fe9b4aa 100644
65+
index 63e01ec7e4ab04bb7d389bff485dfedca344bfa2..84b1570d0d88f57f33ff8179f0a78d37b495a217 100644
6666
--- a/net/minecraft/server/network/ServerGamePacketListenerImpl.java
6767
+++ b/net/minecraft/server/network/ServerGamePacketListenerImpl.java
6868
@@ -2766,6 +2766,8 @@ public class ServerGamePacketListenerImpl
@@ -75,10 +75,10 @@ index ab2e6655e07a667d8ac413c85aaf3743a38db2e0..96b61192d9ab70857427cea65d4ddd0a
7575
if ((target instanceof net.minecraft.world.entity.animal.Bucketable && target instanceof LivingEntity && origItem != null && origItem == Items.WATER_BUCKET) && (event.isCancelled() || ServerGamePacketListenerImpl.this.player.getInventory().getSelectedItem().isEmpty() || !ServerGamePacketListenerImpl.this.player.getInventory().getSelectedItem().is(origItem))) {
7676
target.resendPossiblyDesyncedEntityData(ServerGamePacketListenerImpl.this.player); // Paper - The entire mob gets deleted, so resend it
7777
diff --git a/net/minecraft/world/entity/Entity.java b/net/minecraft/world/entity/Entity.java
78-
index 4dd9ab13f97e14425d792ed23a81477016ddc56c..d4e989889ed21e3900062eed142f26a9bdaaa8d9 100644
78+
index 9f6326da63fc8e0c284d565314f0b448b622c910..488dc3e2e6d6095d416bd81078b3bcbcf92f7ab9 100644
7979
--- a/net/minecraft/world/entity/Entity.java
8080
+++ b/net/minecraft/world/entity/Entity.java
81-
@@ -2861,6 +2861,13 @@ public abstract class Entity implements SyncedDataHolder, Nameable, EntityAccess
81+
@@ -2855,6 +2855,13 @@ public abstract class Entity implements SyncedDataHolder, Nameable, EntityAccess
8282
this.passengers = ImmutableList.copyOf(list);
8383
}
8484

@@ -92,7 +92,7 @@ index 4dd9ab13f97e14425d792ed23a81477016ddc56c..d4e989889ed21e3900062eed142f26a9
9292
this.gameEvent(GameEvent.ENTITY_MOUNT, passenger);
9393
}
9494
}
95-
@@ -2902,6 +2909,14 @@ public abstract class Entity implements SyncedDataHolder, Nameable, EntityAccess
95+
@@ -2896,6 +2903,14 @@ public abstract class Entity implements SyncedDataHolder, Nameable, EntityAccess
9696
return false;
9797
}
9898
// CraftBukkit end
@@ -107,7 +107,7 @@ index 4dd9ab13f97e14425d792ed23a81477016ddc56c..d4e989889ed21e3900062eed142f26a9
107107
if (this.passengers.size() == 1 && this.passengers.get(0) == passenger) {
108108
this.passengers = ImmutableList.of();
109109
} else {
110-
@@ -4828,4 +4843,44 @@ public abstract class Entity implements SyncedDataHolder, Nameable, EntityAccess
110+
@@ -4822,4 +4837,44 @@ public abstract class Entity implements SyncedDataHolder, Nameable, EntityAccess
111111
return ((ServerLevel) this.level()).isPositionEntityTicking(this.blockPosition());
112112
}
113113
// Paper end - Expose entity id counter
@@ -177,7 +177,7 @@ index bda521cca91f070139f5e9bdef6a50e1497f53ff..351f92e1627f465a9a292d4a5e5c256a
177177
protected ParticleOptions getInkParticle() {
178178
return ParticleTypes.GLOW_SQUID_INK;
179179
diff --git a/net/minecraft/world/entity/LivingEntity.java b/net/minecraft/world/entity/LivingEntity.java
180-
index 0caf3cc4c38426dd08d4ec78c00b51a3a880718a..a6739650bfee639925a63f345ac39c6e0c5c3209 100644
180+
index a186784d6b5bae844604a0ca7a2b81857c074a3c..7e2258f0232beae3461ad3ef75b70e9bf1f8b772 100644
181181
--- a/net/minecraft/world/entity/LivingEntity.java
182182
+++ b/net/minecraft/world/entity/LivingEntity.java
183183
@@ -226,9 +226,9 @@ public abstract class LivingEntity extends Entity implements Attackable {
@@ -2585,7 +2585,7 @@ index d34dcbbdeae41d23d6fb497e0e8da038580b6d01..6c252b8021dbeb2a9ffee8a3744ac016
25852585
protected void defineSynchedData(SynchedEntityData.Builder builder) {
25862586
super.defineSynchedData(builder);
25872587
diff --git a/net/minecraft/world/entity/animal/wolf/Wolf.java b/net/minecraft/world/entity/animal/wolf/Wolf.java
2588-
index e94f7b29befd2176fbbc784cd9d08c2d1cd4a94d..cff9bc3d8c9ef1935c25c4001dfd638855062573 100644
2588+
index d25bd49c17478e73561e78bc66171d6e7bc187ba..127a57a477755101283ba7bbb4161a574692c252 100644
25892589
--- a/net/minecraft/world/entity/animal/wolf/Wolf.java
25902590
+++ b/net/minecraft/world/entity/animal/wolf/Wolf.java
25912591
@@ -187,9 +187,32 @@ public class Wolf extends TamableAnimal implements NeutralMob {

purpur-server/minecraft-patches/sources/net/minecraft/world/entity/Entity.java.patch

+9-9
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
}
7878

7979
public boolean causeFallDamage(double fallDistance, float damageMultiplier, DamageSource damageSource) {
80-
@@ -1747,7 +_,7 @@
80+
@@ -1741,7 +_,7 @@
8181
return this.isInWater() || flag;
8282
}
8383

@@ -86,7 +86,7 @@
8686
if (this.getVehicle() instanceof AbstractBoat abstractBoat && !abstractBoat.isUnderWater()) {
8787
this.wasTouchingWater = false;
8888
} else if (this.updateFluidHeightAndDoFluidPushing(FluidTags.WATER, 0.014)) {
89-
@@ -2369,6 +_,13 @@
89+
@@ -2363,6 +_,13 @@
9090
compound.putBoolean("Paper.FreezeLock", true);
9191
}
9292
// Paper end
@@ -100,7 +100,7 @@
100100
return compound;
101101
} catch (Throwable var8) {
102102
CrashReport crashReport = CrashReport.forThrowable(var8, "Saving entity NBT");
103-
@@ -2486,6 +_,13 @@
103+
@@ -2480,6 +_,13 @@
104104
freezeLocked = compound.getBooleanOr("Paper.FreezeLock", false);
105105
}
106106
// Paper end
@@ -114,15 +114,15 @@
114114
} catch (Throwable var8) {
115115
CrashReport crashReport = CrashReport.forThrowable(var8, "Loading entity NBT");
116116
CrashReportCategory crashReportCategory = crashReport.addCategory("Entity being loaded");
117-
@@ -2625,6 +_,7 @@
117+
@@ -2619,6 +_,7 @@
118118
if (this.isAlive() && this instanceof Leashable leashable) {
119119
if (leashable.getLeashHolder() == player) {
120120
if (!this.level().isClientSide()) {
121121
+ if (hand == InteractionHand.OFF_HAND && (level().purpurConfig.villagerCanBeLeashed || level().purpurConfig.wanderingTraderCanBeLeashed) && this instanceof net.minecraft.world.entity.npc.AbstractVillager) return InteractionResult.CONSUME; // Purpur - Allow leashing villagers
122122
// CraftBukkit start - fire PlayerUnleashEntityEvent
123123
// Paper start - Expand EntityUnleashEvent
124124
org.bukkit.event.player.PlayerUnleashEntityEvent event = org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerUnleashEntityEvent(this, player, hand, !player.hasInfiniteMaterials());
125-
@@ -2941,15 +_,18 @@
125+
@@ -2935,15 +_,18 @@
126126
return Vec3.directionFromRotation(this.getRotationVector());
127127
}
128128

@@ -142,7 +142,7 @@
142142
}
143143
}
144144
}
145-
@@ -3154,7 +_,7 @@
145+
@@ -3148,7 +_,7 @@
146146
}
147147

148148
public int getMaxAirSupply() {
@@ -151,7 +151,7 @@
151151
}
152152

153153
public int getAirSupply() {
154-
@@ -3682,7 +_,7 @@
154+
@@ -3676,7 +_,7 @@
155155
// CraftBukkit end
156156

157157
public boolean canUsePortal(boolean allowPassengers) {
@@ -160,7 +160,7 @@
160160
}
161161

162162
public boolean canTeleport(Level fromLevel, Level toLevel) {
163-
@@ -4217,6 +_,12 @@
163+
@@ -4211,6 +_,12 @@
164164
return Mth.lerp(partialTick, this.yRotO, this.yRot);
165165
}
166166

@@ -173,7 +173,7 @@
173173
public boolean updateFluidHeightAndDoFluidPushing(TagKey<Fluid> fluidTag, double motionScale) {
174174
if (this.touchingUnloadedChunk()) {
175175
return false;
176-
@@ -4557,7 +_,7 @@
176+
@@ -4551,7 +_,7 @@
177177
}
178178

179179
public float maxUpStep() {

purpur-server/paper-patches/features/0002-Ridables.patch

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ Subject: [PATCH] Ridables
55

66

77
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java
8-
index 227a2cdc6dbca17d4771aff3a0f62c424c4b06c9..65c4c0690874c29814098448b6cc6077a1e8c566 100644
8+
index 1a4f42c9e6012a6a074c9d5451d8dc11530a5c5b..67b9963afd91af84459d439697f6230fd67722b4 100644
99
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java
1010
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java
11-
@@ -1295,4 +1295,27 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity {
11+
@@ -1275,4 +1275,27 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity {
1212
((CraftPlayer) player).sendHurtAnimation(0, this);
1313
}
1414
}
@@ -37,7 +37,7 @@ index 227a2cdc6dbca17d4771aff3a0f62c424c4b06c9..65c4c0690874c29814098448b6cc6077
3737
+ // Purpur end - Ridables
3838
}
3939
diff --git a/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java b/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java
40-
index 797d731f97c3457d504be5d81e233e3d63f993f6..6f112d700a368a64acca8d702d03ef93942da963 100644
40+
index a7e3afe04ffbb0fd5fa5fcf7cd15efd7cea1c4e0..9c88a5b6b054636a9f326d0253f65496cf3babc3 100644
4141
--- a/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java
4242
+++ b/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java
4343
@@ -514,6 +514,15 @@ public class CraftEventFactory {

purpur-server/paper-patches/files/src/main/java/org/bukkit/craftbukkit/entity/CraftWolf.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/CraftWolf.java
22
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftWolf.java
3-
@@ -145,4 +_,15 @@
3+
@@ -227,4 +_,15 @@
44
return this.getKey().hashCode();
55
}
66
}

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
--- a/src/main/java/org/bukkit/craftbukkit/util/CraftMagicNumbers.java
22
+++ b/src/main/java/org/bukkit/craftbukkit/util/CraftMagicNumbers.java
3-
@@ -491,7 +_,7 @@
3+
@@ -481,7 +_,7 @@
44

55
@Override
66
public com.destroystokyo.paper.util.VersionFetcher getVersionFetcher() {

0 commit comments

Comments
 (0)