Remove (now unused) allowMultipleProtectionEnchantments config option
This commit is contained in:
parent
17533752e3
commit
a0b0d78ee9
@ -35,7 +35,6 @@ public class ConfigLoader
|
|||||||
private boolean dropNetheriteAsChestplate;
|
private boolean dropNetheriteAsChestplate;
|
||||||
private LinkedHashSet<Enchantment> allowedEnchantments;
|
private LinkedHashSet<Enchantment> allowedEnchantments;
|
||||||
private LinkedHashSet<List<Enchantment>> mutuallyExclusiveEnchantments;
|
private LinkedHashSet<List<Enchantment>> mutuallyExclusiveEnchantments;
|
||||||
private boolean allowMultipleProtectionEnchantments;
|
|
||||||
private boolean craftingInSmithingTable;
|
private boolean craftingInSmithingTable;
|
||||||
private boolean allowUpgradeToNetherite;
|
private boolean allowUpgradeToNetherite;
|
||||||
private boolean bypassWearPerm;
|
private boolean bypassWearPerm;
|
||||||
@ -122,16 +121,6 @@ public class ConfigLoader
|
|||||||
{
|
{
|
||||||
"Specify a language file to be used."
|
"Specify a language file to be used."
|
||||||
};
|
};
|
||||||
String[] allowMultipleProtectionEnchantmentsComment =
|
|
||||||
{
|
|
||||||
"Allow more than 1 type of protection enchantment on a single armored elytra. ",
|
|
||||||
"If true, you could have both blast protection and environmental protection at the same time.",
|
|
||||||
"If false, the second enchantment (while crafting) will override the first. So combining an armored",
|
|
||||||
"elytra that has the protection enchantment with an enchanted book that " +
|
|
||||||
"has the blast protection enchantment",
|
|
||||||
"would result in removal of the protection enchantment and addition of the " +
|
|
||||||
"blast protection enchantment."
|
|
||||||
};
|
|
||||||
String[] permissionsComment =
|
String[] permissionsComment =
|
||||||
{
|
{
|
||||||
"Globally bypass permissions for wearing and/or crafting armored elytras.",
|
"Globally bypass permissions for wearing and/or crafting armored elytras.",
|
||||||
@ -215,8 +204,6 @@ public class ConfigLoader
|
|||||||
mutuallyExclusiveEnchantments = new LinkedHashSet<>();
|
mutuallyExclusiveEnchantments = new LinkedHashSet<>();
|
||||||
defaultMutuallyExclusiveEnchantments.forEach(this::addMutuallyExclusiveEnchantments);
|
defaultMutuallyExclusiveEnchantments.forEach(this::addMutuallyExclusiveEnchantments);
|
||||||
|
|
||||||
allowMultipleProtectionEnchantments = addNewConfigOption(config, "allowMultipleProtectionEnchantments", false,
|
|
||||||
allowMultipleProtectionEnchantmentsComment);
|
|
||||||
allowAddingEnchantments = addNewConfigOption(config, "allowAddingEnchantments", true,
|
allowAddingEnchantments = addNewConfigOption(config, "allowAddingEnchantments", true,
|
||||||
allowAddingEnchantmentsComment);
|
allowAddingEnchantmentsComment);
|
||||||
allowRenaming = addNewConfigOption(config, "allowRenaming", true, allowRenamingComment);
|
allowRenaming = addNewConfigOption(config, "allowRenaming", true, allowRenamingComment);
|
||||||
@ -363,11 +350,6 @@ public class ConfigLoader
|
|||||||
return repairCounts[armorTier.ordinal()];
|
return repairCounts[armorTier.ordinal()];
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean allowMultipleProtectionEnchantments()
|
|
||||||
{
|
|
||||||
return allowMultipleProtectionEnchantments;
|
|
||||||
}
|
|
||||||
|
|
||||||
public boolean allowRenaming()
|
public boolean allowRenaming()
|
||||||
{
|
{
|
||||||
return allowRenaming;
|
return allowRenaming;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user