Issue #16: Knockback Modifiers have unexpected results

This commit is contained in:
Aleksey Terzi
2022-07-14 21:46:37 -06:00
parent a818dbe6e9
commit 6bda18a336

View File

@@ -185,7 +185,7 @@ public class CombatUtil {
}
}
Vector attackerMotion = config.getAttackerMotion();
attacker.setDeltaMovement(attacker.getDeltaMovement().add(attackerMotion.getX(), attackerMotion.getY(), attackerMotion.getZ()));
attacker.setDeltaMovement(attacker.getDeltaMovement().multiply(attackerMotion.getX(), attackerMotion.getY(), attackerMotion.getZ()));
if (attacker.isInWater()) {
attacker.setSprinting(!config.isWaterSprintResetEnabled());
} else {