mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-12-26 20:27:38 +01:00
conflictsWith now checks two ways
This commit is contained in:
parent
f0a72b5806
commit
699d4b1e98
@ -363,6 +363,9 @@ public abstract class EcoEnchant extends Enchantment implements Listener, Watche
|
||||
*/
|
||||
@Override
|
||||
public boolean conflictsWith(@NotNull final Enchantment enchantment) {
|
||||
if (enchantment instanceof EcoEnchant) {
|
||||
return conflicts.contains(enchantment) || ((EcoEnchant) enchantment).conflicts.contains(this);
|
||||
}
|
||||
return conflicts.contains(enchantment);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user