mirror of
https://github.com/CivMC/Civ.git
synced 2026-07-18 00:20:44 +00:00
Issue #16: Knockback Modifiers have unexpected results
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user