diff options
author | Bjarne Koll <[email protected]> | 2024-12-23 19:38:10 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2024-12-23 19:38:10 +0100 |
commit | 17d76ae42bf8a967cf703fc937b05bd351629351 (patch) | |
tree | 643cc8dd3875ef0ba185f522f5660a0668ff29ba /paper-server/patches/features/0003-Entity-Activation-Range-2.0.patch | |
parent | c76809973b3edabae865c0bdd7f6616c71d51227 (diff) | |
download | Paper-17d76ae42bf8a967cf703fc937b05bd351629351.tar.gz Paper-17d76ae42bf8a967cf703fc937b05bd351629351.zip |
Correctly die when cancelling EntityResurrectEvent (#11785)
The existing logic in LivingEntity#checkTotemDeathProtection completes
by checking whether the death protection component is null or not.
In cases where the event was cancelled, the component needs to be nulled
out to prevent the method from returning true, causing the player to
properly die.
Diffstat (limited to 'paper-server/patches/features/0003-Entity-Activation-Range-2.0.patch')
-rw-r--r-- | paper-server/patches/features/0003-Entity-Activation-Range-2.0.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/paper-server/patches/features/0003-Entity-Activation-Range-2.0.patch b/paper-server/patches/features/0003-Entity-Activation-Range-2.0.patch index adff760447..cbfc717b36 100644 --- a/paper-server/patches/features/0003-Entity-Activation-Range-2.0.patch +++ b/paper-server/patches/features/0003-Entity-Activation-Range-2.0.patch @@ -533,10 +533,10 @@ index e7889c9c7b155db46730f5e168bb7fd3d1732a8c..334859c5ff7023c730513301cc11c983 movement = this.maybeBackOffFromEdge(movement, type); Vec3 vec3 = this.collide(movement); diff --git a/net/minecraft/world/entity/LivingEntity.java b/net/minecraft/world/entity/LivingEntity.java -index a71a153a91de5a564b946091d8d3ccbb330e4b89..195e1151f7b2a32d6c4eb67edd1952e38f58b266 100644 +index ff513e8c87bf42be756e46f4dbfec8dda2b8cb60..239c443ddc9bacc08a39a8ef2ab17016a2480549 100644 --- a/net/minecraft/world/entity/LivingEntity.java +++ b/net/minecraft/world/entity/LivingEntity.java -@@ -3094,6 +3094,14 @@ public abstract class LivingEntity extends Entity implements Attackable { +@@ -3096,6 +3096,14 @@ public abstract class LivingEntity extends Entity implements Attackable { return false; } |