mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2025-02-23 05:41:19 +01:00
Fixed proximity distance bug
This commit is contained in:
parent
eef5c251d6
commit
d9d62288fa
@ -19,6 +19,10 @@ public class Proximity extends EcoEnchant {
|
||||
@NotNull final LivingEntity victim,
|
||||
final int level,
|
||||
@NotNull final EntityDamageByEntityEvent event) {
|
||||
if (!attacker.getWorld().equals(victim.getWorld())) {
|
||||
return;
|
||||
}
|
||||
|
||||
double distance = attacker.getLocation().distance(victim.getLocation());
|
||||
|
||||
double decreaseAfter = this.getConfig().getDouble(EcoEnchants.CONFIG_LOCATION + "when-closer-than-blocks");
|
||||
|
Loading…
Reference in New Issue
Block a user