13
0
geforkt von Mirrors/Paper

Fix diff in sprint interruption option (Closes #10939)

Dieser Commit ist enthalten in:
Shane Freeder 2024-06-21 01:21:23 +01:00
Ursprung 05dd6c2bec
Commit 71f3228b5c

Datei anzeigen

@ -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
}