Check mutuallyExclusiveEnchantment count every enchantment rather than once per group
This commit is contained in:
parent
245b882411
commit
67a4b8c7c5
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user