From 71f3228b5ca56b6044bbaf2b5ad1a2da8529b46a Mon Sep 17 00:00:00 2001 From: Shane Freeder Date: Fri, 21 Jun 2024 01:21:23 +0100 Subject: [PATCH] Fix diff in sprint interruption option (Closes #10939) --- .../server/Configurable-sprint-interruption-on-attack.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/patches/server/Configurable-sprint-interruption-on-attack.patch b/patches/server/Configurable-sprint-interruption-on-attack.patch index e9afaf92c1..bb58ddb291 100644 --- a/patches/server/Configurable-sprint-interruption-on-attack.patch +++ b/patches/server/Configurable-sprint-interruption-on-attack.patch @@ -10,12 +10,12 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 --- a/src/main/java/net/minecraft/world/entity/player/Player.java +++ b/src/main/java/net/minecraft/world/entity/player/Player.java @@ -0,0 +0,0 @@ public abstract class Player extends LivingEntity { + } this.setDeltaMovement(this.getDeltaMovement().multiply(0.6D, 1.0D, 0.6D)); - this.setSprinting(false); + // Paper start - Configurable sprint interruption on attack + if (!this.level().paperConfig().misc.disableSprintInterruptionOnAttack) { -+ this.setSprinting(false); + this.setSprinting(false); + } + // Paper end - Configurable sprint interruption on attack }