Fix null check errors with checking for Infinity/Mending knockoff.
This commit is contained in:
parent
f414fdbb68
commit
9b5d4015a3
Binary file not shown.
@ -502,7 +502,7 @@ public class CustomDamage {
|
||||
increaseSwordComboCount(weapon, p);
|
||||
}
|
||||
performMegaKnockback(damager,target);
|
||||
if (damager instanceof Arrow || weapon.getType()!=Material.BOW) {
|
||||
if ((damager!=null && damager instanceof Arrow) || (weapon!=null && weapon.getType()!=Material.BOW)) {
|
||||
removePermEnchantments(p,weapon);
|
||||
}
|
||||
//GenericFunctions.knockOffGreed(p);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user