Skip to content

Commit

Permalink
Fixed encantment names
Browse files Browse the repository at this point in the history
  • Loading branch information
pcluddite committed Sep 4, 2019
1 parent 5bbb31c commit c81f81d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/tbax/baxshops/items/ItemUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ public static String getEnchantName(Enchantment enchant)
{
Enchantable enchantable = enchants.get(enchant);
if (enchantable == null)
return Format.toFriendlyName(enchant.toString());
return Format.toFriendlyName(enchant.getKey().getKey());
return enchantable.getName();
}

Expand Down Expand Up @@ -290,7 +290,7 @@ public static Enchantable getEnchantable(Enchantment enchantment)
{
Enchantable enchantable = enchants.get(enchantment);
if (enchantable == null)
return new Enchantable(Format.toFriendlyName(enchantment.toString()), true);
return new Enchantable(Format.toFriendlyName(enchantment.getKey().getKey()), true);
return enchantable;
}

Expand Down

0 comments on commit c81f81d

Please sign in to comment.