Fix null check errors with checking for Infinity/Mending knockoff.

dev
sigonasr2 9 years ago
parent f414fdbb68
commit 9b5d4015a3
  1. BIN
      TwosideKeeper.jar
  2. 2
      src/sig/plugin/TwosideKeeper/CustomDamage.java

Binary file not shown.

@ -502,7 +502,7 @@ public class CustomDamage {
increaseSwordComboCount(weapon, p); increaseSwordComboCount(weapon, p);
} }
performMegaKnockback(damager,target); 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); removePermEnchantments(p,weapon);
} }
//GenericFunctions.knockOffGreed(p); //GenericFunctions.knockOffGreed(p);

Loading…
Cancel
Save