mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-15 14:13:56 +01:00
Fix diff in sprint interruption option (Closes #10939)
This commit is contained in:
parent
05dd6c2bec
commit
71f3228b5c
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue