mirror of
https://github.com/Auxilor/EcoArmor.git
synced 2025-12-27 19:09:13 +00:00
Fixed default tier working on raw string instead of config lookup
This commit is contained in:
@@ -294,7 +294,7 @@ public class ArmorSet {
|
||||
itemStack.setItemMeta(meta);
|
||||
|
||||
ArmorUtils.setAdvanced(itemStack, advanced);
|
||||
ArmorUtils.setTier(itemStack, Tiers.getByName(pieceName + ".default-tier"));
|
||||
ArmorUtils.setTier(itemStack, Tiers.getByName(this.getConfig().getString(pieceName + ".default-tier")));
|
||||
|
||||
if (advanced) {
|
||||
RecipeParts.registerRecipePart(PLUGIN.getNamespacedKeyFactory().create("set_" + name.toLowerCase() + "_" + pieceName + "_advanced"), new ComplexRecipePart(test -> {
|
||||
|
||||
@@ -56,9 +56,6 @@ public class Tiers {
|
||||
* @return The matching {@link Tiers}, or null if not found.
|
||||
*/
|
||||
public static Tier getByName(@Nullable final String name) {
|
||||
if (name != null && name.equalsIgnoreCase("default")) {
|
||||
return DEFAULT;
|
||||
}
|
||||
return BY_NAME.get(name);
|
||||
}
|
||||
|
||||
@@ -109,7 +106,6 @@ public class Tiers {
|
||||
}
|
||||
|
||||
static {
|
||||
addNewTier(DEFAULT);
|
||||
reload();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user