aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0187-Configurable-sprint-interruption-on-attack.patch
diff options
context:
space:
mode:
authorNassim Jahnke <[email protected]>2024-01-23 15:43:48 +0100
committerNassim Jahnke <[email protected]>2024-01-23 15:57:42 +0100
commite66037960b02c7b22bbed75318904c55a4177977 (patch)
treed0b197f87dbd7c547018af9defdb33691ddce30b /patches/server/0187-Configurable-sprint-interruption-on-attack.patch
parent52619e7a2162d0feb8f142227fe8ad34e21ce860 (diff)
downloadPaper-e66037960b02c7b22bbed75318904c55a4177977.tar.gz
Paper-e66037960b02c7b22bbed75318904c55a4177977.zip
[ci skip] Move some disruptive patches back
Diffstat (limited to 'patches/server/0187-Configurable-sprint-interruption-on-attack.patch')
-rw-r--r--patches/server/0187-Configurable-sprint-interruption-on-attack.patch24
1 files changed, 0 insertions, 24 deletions
diff --git a/patches/server/0187-Configurable-sprint-interruption-on-attack.patch b/patches/server/0187-Configurable-sprint-interruption-on-attack.patch
deleted file mode 100644
index f6123af66d..0000000000
--- a/patches/server/0187-Configurable-sprint-interruption-on-attack.patch
+++ /dev/null
@@ -1,24 +0,0 @@
-From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
-From: Brokkonaut <[email protected]>
-Date: Sat, 14 Apr 2018 20:20:46 +0200
-Subject: [PATCH] Configurable sprint interruption on attack
-
-If the sprint interruption is disabled players continue sprinting when they attack entities.
-
-diff --git a/src/main/java/net/minecraft/world/entity/player/Player.java b/src/main/java/net/minecraft/world/entity/player/Player.java
-index 755364ee011df4deed65fc36ea41012d0667c918..fd29c7f9fd50b52333f792cd07540704af579058 100644
---- a/src/main/java/net/minecraft/world/entity/player/Player.java
-+++ b/src/main/java/net/minecraft/world/entity/player/Player.java
-@@ -1291,7 +1291,11 @@ 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);
-+ }
-+ // Paper end - Configurable sprint interruption on attack
- }
-
- if (flag3) {