diff options
author | Jake Potrebic <[email protected]> | 2024-05-30 13:17:16 -0700 |
---|---|---|
committer | GitHub <[email protected]> | 2024-05-30 13:17:16 -0700 |
commit | a47e11d464d84aca537687748aafe32c08567801 (patch) | |
tree | 3d8db87b4fed8463d840c55ef46c8f7c4aff1444 /patches/server/0641-Prevent-excessive-velocity-through-repeated-crits.patch | |
parent | 06e69c8991b8c5022a319e4415ebd7822b5d1fb8 (diff) | |
download | Paper-a47e11d464d84aca537687748aafe32c08567801.tar.gz Paper-a47e11d464d84aca537687748aafe32c08567801.zip |
fix knockback events (#10831)
* fix knockback events
* squash
* handle cancelled event for explosions
Diffstat (limited to 'patches/server/0641-Prevent-excessive-velocity-through-repeated-crits.patch')
-rw-r--r-- | patches/server/0641-Prevent-excessive-velocity-through-repeated-crits.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/patches/server/0641-Prevent-excessive-velocity-through-repeated-crits.patch b/patches/server/0641-Prevent-excessive-velocity-through-repeated-crits.patch index 69696583d7..0ad285e8c5 100644 --- a/patches/server/0641-Prevent-excessive-velocity-through-repeated-crits.patch +++ b/patches/server/0641-Prevent-excessive-velocity-through-repeated-crits.patch @@ -5,10 +5,10 @@ Subject: [PATCH] Prevent excessive velocity through repeated crits diff --git a/src/main/java/net/minecraft/world/entity/LivingEntity.java b/src/main/java/net/minecraft/world/entity/LivingEntity.java -index a1edb9465872f762e1bc3daf1a3121bc3654e847..13b410f0bd184fa37e2098e8f08de39babec356a 100644 +index e75da895d4e050a775d77966c5007487c2617fdc..cd0c949eb76814829e8554977358f8f818f33b20 100644 --- a/src/main/java/net/minecraft/world/entity/LivingEntity.java +++ b/src/main/java/net/minecraft/world/entity/LivingEntity.java -@@ -2754,16 +2754,28 @@ public abstract class LivingEntity extends Entity implements Attackable { +@@ -2744,16 +2744,28 @@ public abstract class LivingEntity extends Entity implements Attackable { return this.hasEffect(MobEffects.JUMP) ? 0.1F * ((float) this.getEffect(MobEffects.JUMP).getAmplifier() + 1.0F) : 0.0F; } |