Convert LinkedHashSet to List
This commit is contained in:
parent
f4cfdcd227
commit
245b882411
@ -34,7 +34,7 @@ public class ConfigLoader
|
|||||||
private boolean useTierDurability;
|
private boolean useTierDurability;
|
||||||
private boolean dropNetheriteAsChestplate;
|
private boolean dropNetheriteAsChestplate;
|
||||||
private LinkedHashSet<Enchantment> allowedEnchantments;
|
private LinkedHashSet<Enchantment> allowedEnchantments;
|
||||||
private LinkedHashSet<List<Enchantment>> mutuallyExclusiveEnchantments;
|
private List<List<Enchantment>> mutuallyExclusiveEnchantments;
|
||||||
private boolean craftingInSmithingTable;
|
private boolean craftingInSmithingTable;
|
||||||
private boolean allowUpgradeToNetherite;
|
private boolean allowUpgradeToNetherite;
|
||||||
private boolean bypassWearPerm;
|
private boolean bypassWearPerm;
|
||||||
@ -207,7 +207,7 @@ public class ConfigLoader
|
|||||||
|
|
||||||
defaultMutuallyExclusiveEnchantments = addNewConfigOption(config, "mutuallyExclusiveEnchantments",
|
defaultMutuallyExclusiveEnchantments = addNewConfigOption(config, "mutuallyExclusiveEnchantments",
|
||||||
defaultMutuallyExclusiveEnchantments, mutuallyExclusiveEnchantmentsComment);
|
defaultMutuallyExclusiveEnchantments, mutuallyExclusiveEnchantmentsComment);
|
||||||
mutuallyExclusiveEnchantments = new LinkedHashSet<>();
|
mutuallyExclusiveEnchantments = new LinkedList<>();
|
||||||
defaultMutuallyExclusiveEnchantments.forEach(this::addMutuallyExclusiveEnchantments);
|
defaultMutuallyExclusiveEnchantments.forEach(this::addMutuallyExclusiveEnchantments);
|
||||||
|
|
||||||
allowAddingEnchantments = addNewConfigOption(config, "allowAddingEnchantments", true,
|
allowAddingEnchantments = addNewConfigOption(config, "allowAddingEnchantments", true,
|
||||||
@ -391,7 +391,7 @@ public class ConfigLoader
|
|||||||
return allowedEnchantments;
|
return allowedEnchantments;
|
||||||
}
|
}
|
||||||
|
|
||||||
public LinkedHashSet<List<Enchantment>> getMutuallyExclusiveEnchantments()
|
public List<List<Enchantment>> getMutuallyExclusiveEnchantments()
|
||||||
{
|
{
|
||||||
return mutuallyExclusiveEnchantments;
|
return mutuallyExclusiveEnchantments;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user