mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-20 09:57:43 +01:00
Updated Upstream (Paper)
Upstream has released updates that appear to apply and compile correctly Paper Changes: PaperMC/Paper@38fe16b5 Fix missing reason in disconnectAsync (#13001) PaperMC/Paper@b0da38c2 Repository details in RuntimeException for MavenLibraryResolver#addRepository (#12939) PaperMC/Paper@1922be90 Update custom tags (#12183) PaperMC/Paper@79cf1353 Ignore HopperInventorySearchEvent when it has no listeners (#13009) PaperMC/Paper@ea014f7a feat: add stuckEntityPoiRetryDelay config (#12949) PaperMC/Paper@a9e76749 Support for showNotification in PlayerRecipeDiscoverEvent (#12992) PaperMC/Paper@5622c9dd Expose attribute sentiment (#12974) PaperMC/Paper@42b653b1 Expose more argument types (#12665) PaperMC/Paper@52d9a221 [ci/skip] Fix typo in Display javadoc (#13010) PaperMC/Paper@614e9acf Improve APIs around riptide tridents (#12996)
This commit is contained in:
@@ -2,7 +2,7 @@ group = org.purpurmc.purpur
|
|||||||
version = 1.21.8-R0.1-SNAPSHOT
|
version = 1.21.8-R0.1-SNAPSHOT
|
||||||
|
|
||||||
mcVersion = 1.21.8
|
mcVersion = 1.21.8
|
||||||
paperCommit = f866a5fd5497798590aebefb99e417c97a8e1e76
|
paperCommit = 614e9acfca696b98b810c65e3582993fcefc321e
|
||||||
|
|
||||||
org.gradle.configuration-cache = true
|
org.gradle.configuration-cache = true
|
||||||
org.gradle.caching = true
|
org.gradle.caching = true
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ Subject: [PATCH] Implement elytra settings
|
|||||||
|
|
||||||
|
|
||||||
diff --git a/net/minecraft/world/entity/LivingEntity.java b/net/minecraft/world/entity/LivingEntity.java
|
diff --git a/net/minecraft/world/entity/LivingEntity.java b/net/minecraft/world/entity/LivingEntity.java
|
||||||
index 177333f6c375eac51e0468e337806987fc7ada0f..24dda86c8f03b5876bc0afc827829da78ec85850 100644
|
index 56b090a464d6f8481f8b5a516799c325b25b5bf5..7165479d4445a7d370bdefe73ac23d5caeafabd9 100644
|
||||||
--- a/net/minecraft/world/entity/LivingEntity.java
|
--- a/net/minecraft/world/entity/LivingEntity.java
|
||||||
+++ b/net/minecraft/world/entity/LivingEntity.java
|
+++ b/net/minecraft/world/entity/LivingEntity.java
|
||||||
@@ -3713,7 +3713,18 @@ public abstract class LivingEntity extends Entity implements Attackable, Waypoin
|
@@ -3713,7 +3713,18 @@ public abstract class LivingEntity extends Entity implements Attackable, Waypoin
|
||||||
@@ -70,14 +70,13 @@ index 373822831e3025e0365f2bf1a41013450f8b0e00..d3892cc9ef3ab66a45fe3ab72e8a5ef8
|
|||||||
onBreak.accept(item);
|
onBreak.accept(item);
|
||||||
}
|
}
|
||||||
diff --git a/net/minecraft/world/item/TridentItem.java b/net/minecraft/world/item/TridentItem.java
|
diff --git a/net/minecraft/world/item/TridentItem.java b/net/minecraft/world/item/TridentItem.java
|
||||||
index 37720f5f8a680201db5ba78ca43ee59f72cb2e9a..7fe10d298a1204d87c0484f97f3767de6779c687 100644
|
index 44b616ad2740d6ba9c8b2579ecd14edde64fffbb..8f7e6ac2ccb845133f6af69d2aac9b8674b1cc56 100644
|
||||||
--- a/net/minecraft/world/item/TridentItem.java
|
--- a/net/minecraft/world/item/TridentItem.java
|
||||||
+++ b/net/minecraft/world/item/TridentItem.java
|
+++ b/net/minecraft/world/item/TridentItem.java
|
||||||
@@ -126,6 +126,18 @@ public class TridentItem extends Item implements ProjectileItem {
|
@@ -126,6 +126,17 @@ public class TridentItem extends Item implements ProjectileItem {
|
||||||
f1 *= tridentSpinAttackStrength / squareRoot;
|
f1 *= tridentSpinAttackStrength / squareRoot;
|
||||||
f2 *= tridentSpinAttackStrength / squareRoot;
|
f2 *= tridentSpinAttackStrength / squareRoot;
|
||||||
org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerRiptideEvent(player, stack, f, f1, f2); // CraftBukkit
|
if (!org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerRiptideEvent(player, stack, f, f1, f2)) return false; // Paper - Add player riptide event
|
||||||
+
|
|
||||||
+ // Purpur start - Implement elytra settings
|
+ // Purpur start - Implement elytra settings
|
||||||
+ List<net.minecraft.world.entity.EquipmentSlot> list = net.minecraft.world.entity.EquipmentSlot.VALUES.stream().filter((enumitemslot) -> LivingEntity.canGlideUsing(entity.getItemBySlot(enumitemslot), enumitemslot)).toList();
|
+ List<net.minecraft.world.entity.EquipmentSlot> list = net.minecraft.world.entity.EquipmentSlot.VALUES.stream().filter((enumitemslot) -> LivingEntity.canGlideUsing(entity.getItemBySlot(enumitemslot), enumitemslot)).toList();
|
||||||
+ if (!list.isEmpty()) {
|
+ if (!list.isEmpty()) {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
--- a/net/minecraft/stats/ServerRecipeBook.java
|
--- a/net/minecraft/stats/ServerRecipeBook.java
|
||||||
+++ b/net/minecraft/stats/ServerRecipeBook.java
|
+++ b/net/minecraft/stats/ServerRecipeBook.java
|
||||||
@@ -102,6 +_,7 @@
|
@@ -106,6 +_,7 @@
|
||||||
private void loadRecipes(List<ResourceKey<Recipe<?>>> recipes, Consumer<ResourceKey<Recipe<?>>> output, Predicate<ResourceKey<Recipe<?>>> isRecognized) {
|
private void loadRecipes(List<ResourceKey<Recipe<?>>> recipes, Consumer<ResourceKey<Recipe<?>>> output, Predicate<ResourceKey<Recipe<?>>> isRecognized) {
|
||||||
for (ResourceKey<Recipe<?>> resourceKey : recipes) {
|
for (ResourceKey<Recipe<?>> resourceKey : recipes) {
|
||||||
if (!isRecognized.test(resourceKey)) {
|
if (!isRecognized.test(resourceKey)) {
|
||||||
|
|||||||
@@ -156,7 +156,7 @@
|
|||||||
this.hurt(this.damageSources().flyIntoWall(), f);
|
this.hurt(this.damageSources().flyIntoWall(), f);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -4501,6 +_,12 @@
|
@@ -4517,6 +_,12 @@
|
||||||
? slot == EquipmentSlot.MAINHAND && this.canUseSlot(EquipmentSlot.MAINHAND)
|
? slot == EquipmentSlot.MAINHAND && this.canUseSlot(EquipmentSlot.MAINHAND)
|
||||||
: slot == equippable.slot() && this.canUseSlot(equippable.slot()) && equippable.canBeEquippedBy(this.getType());
|
: slot == equippable.slot() && this.canUseSlot(equippable.slot()) && equippable.canBeEquippedBy(this.getType());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user