mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2025-02-03 02:21:21 +01:00
Fixed rebounding going in an opposite direction
This commit is contained in:
parent
be73ae3d6e
commit
e531fc6b93
@ -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;
|
||||
|
@ -24,4 +24,4 @@ general-config:
|
||||
maximum-level: 2
|
||||
|
||||
config:
|
||||
velocity-multiplier: 1.2
|
||||
velocity-multiplier: 1.5
|
||||
|
Loading…
Reference in New Issue
Block a user