Fixed rebounding going in an opposite direction

This commit is contained in:
Auxilor 2021-04-14 16:20:22 +01:00
parent be73ae3d6e
commit e531fc6b93
2 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ public class Rebounding extends EcoEnchant {
}
Vector vector = attacker.getLocation().toVector().clone().subtract(victim.getLocation().toVector()).normalize()
.multiply((-level * (this.getConfig().getDouble(EcoEnchants.CONFIG_LOCATION + "velocity-multiplier") - 1)) + 1);
.multiply((level * (this.getConfig().getDouble(EcoEnchants.CONFIG_LOCATION + "velocity-multiplier") - 1)) + 1);
if (!VectorUtils.isFinite(vector)) {
return;

View File

@ -24,4 +24,4 @@ general-config:
maximum-level: 2
config:
velocity-multiplier: 1.2
velocity-multiplier: 1.5