Check mutuallyExclusiveEnchantment count every enchantment rather than once per group

This commit is contained in:
Brett Bonifas 2022-03-10 12:06:21 -05:00
parent 245b882411
commit 67a4b8c7c5

View File

@ -168,8 +168,8 @@ public class EnchantmentContainer implements Iterable<Map.Entry<Enchantment, Int
for (Enchantment mutuallyExclusiveEnchantment : mutuallyExclusiveEnchantments) {
if (mutuallyExclusiveEnchantment.equals(one)) count++;
if (mutuallyExclusiveEnchantment.equals(two)) count++;
if (count > 1) return true;
}
if (count > 1) return true;
}
return false;
}