Skip to content

Commit

Permalink
tidy ItemStackElement
Browse files Browse the repository at this point in the history
  • Loading branch information
mezz committed Nov 28, 2015
1 parent bea7426 commit 6b10b77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/mezz/jei/util/ItemStackElement.java
Expand Up @@ -32,14 +32,14 @@ public static ItemStackElement create(@Nonnull ItemStack itemStack) {
}
}

public ItemStackElement(@Nonnull ItemStack itemStack) {
private ItemStackElement(@Nonnull ItemStack itemStack) {
this.itemStack = itemStack;
this.localizedName = itemStack.getDisplayName().toLowerCase();

String modId = GameRegistry.findUniqueIdentifierFor(itemStack.getItem()).modId;
String modName = JEIManager.itemRegistry.getModNameForItem(itemStack.getItem());

this.modName = modId.toLowerCase(Locale.ENGLISH) + " " + modName.toLowerCase(Locale.ENGLISH);
this.modName = modId.toLowerCase(Locale.ENGLISH) + ' ' + modName.toLowerCase(Locale.ENGLISH);
}

@Nonnull
Expand Down

0 comments on commit 6b10b77

Please sign in to comment.