9
0
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:
Auxilor
2021-03-22 13:49:14 +00:00
parent 87cbdb040d
commit 3241f60e76
2 changed files with 1 additions and 5 deletions

View File

@@ -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 -> {

View File

@@ -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();
}
}