Check mutuallyExclusiveEnchantment count every enchantment rather than once per group
This commit is contained in:
parent
245b882411
commit
67a4b8c7c5
@ -168,9 +168,9 @@ public class EnchantmentContainer implements Iterable<Map.Entry<Enchantment, Int
|
|||||||
for (Enchantment mutuallyExclusiveEnchantment : mutuallyExclusiveEnchantments) {
|
for (Enchantment mutuallyExclusiveEnchantment : mutuallyExclusiveEnchantments) {
|
||||||
if (mutuallyExclusiveEnchantment.equals(one)) count++;
|
if (mutuallyExclusiveEnchantment.equals(one)) count++;
|
||||||
if (mutuallyExclusiveEnchantment.equals(two)) count++;
|
if (mutuallyExclusiveEnchantment.equals(two)) count++;
|
||||||
}
|
|
||||||
if (count > 1) return true;
|
if (count > 1) return true;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user