mirror of
https://github.com/Auxilor/EcoArmor.git
synced 2025-12-27 10:59:22 +00:00
Fixed various shit
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
package com.willfp.ecoarmor.display;
|
||||
|
||||
import com.willfp.ecoarmor.EcoArmorPlugin;
|
||||
import com.willfp.ecoarmor.config.EcoArmorConfigs;
|
||||
import com.willfp.ecoarmor.proxy.proxies.SkullProxy;
|
||||
import com.willfp.ecoarmor.sets.ArmorSet;
|
||||
@@ -20,11 +19,6 @@ import java.util.List;
|
||||
|
||||
@UtilityClass
|
||||
public class ArmorDisplay {
|
||||
/**
|
||||
* Instance of EcoArmor.
|
||||
*/
|
||||
private static final EcoArmorPlugin PLUGIN = EcoArmorPlugin.getInstance();
|
||||
|
||||
/**
|
||||
* The prefix for all EcoArmor lines to have in lore.
|
||||
*/
|
||||
|
||||
@@ -21,7 +21,7 @@ public class BowDamageMultiplier extends Effect<Double> {
|
||||
return;
|
||||
}
|
||||
|
||||
Player attacker = null;
|
||||
Player player = null;
|
||||
if (event.getDamager() instanceof Arrow) {
|
||||
ProjectileSource shooter = ((Projectile) event.getDamager()).getShooter();
|
||||
if (shooter == null) {
|
||||
@@ -29,15 +29,15 @@ public class BowDamageMultiplier extends Effect<Double> {
|
||||
}
|
||||
|
||||
if (shooter instanceof Player) {
|
||||
attacker = (Player) shooter;
|
||||
player = (Player) shooter;
|
||||
}
|
||||
}
|
||||
|
||||
if (attacker == null) {
|
||||
if (player == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
Double multiplier = ArmorUtils.getEffectStrength(attacker, this);
|
||||
Double multiplier = ArmorUtils.getEffectStrength(player, this);
|
||||
if (multiplier == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user