Skip to content

Commit

Permalink
More Parentheses (#856)
Browse files Browse the repository at this point in the history
Clearly there weren't enough to make it work properly.
  • Loading branch information
TrueDarkLord authored Sep 26, 2024
1 parent 5fbaf5d commit 8a4b0e5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ private static boolean isActive(Player player, CEnchantments enchant, Map<CEncha
private static boolean isActive(Player player, CEnchantments enchant, Map<CEnchantment, Integer> enchants, double multiplier) {
//if (CrazyEnchantments.getPlugin().getStarter().getCrazyManager().getCEPlayer(player.getUniqueId()).onEnchantCooldown(enchant)) return false;
return enchants.containsKey(enchant.getEnchantment()) && (player.isOp() ||
(!enchant.hasChanceSystem() || enchant.chanceSuccessful(enchants.get(enchant.getEnchantment()), multiplier) &&
((!enchant.hasChanceSystem() || enchant.chanceSuccessful(enchants.get(enchant.getEnchantment()), multiplier)) &&
!(player.hasPermission("crazyenchantments.%s.deny".formatted(enchant.getName())))));
// TODO Potentially add in entity support.
}
Expand Down

0 comments on commit 8a4b0e5

Please sign in to comment.