This commit is contained in:
Vasco Lavos committed 2015-10-25 00:02:45 +01:00
1 parent 73377e311d
commit a6729c088b
53 files changed
+259 -289

No files matched your search

@@ -13,8 +13,8 @@ package vazkii.botania.api.lexicon;
import java.util.HashMap;
import java.util.Map;
import vazkii.botania.api.mana.IManaItem;
import net.minecraft.item.ItemStack;
import vazkii.botania.api.mana.IManaItem;
/**
* This class contains mappings for which entry and page correspond to each
@@ -54,13 +54,13 @@ public final class LexiconRecipeMappings {
if(stack.hasTagCompound() && stack.getItem() instanceof IRecipeKeyProvider)
return ((IRecipeKeyProvider) stack.getItem()).getKey(stack);
return stack.getUnlocalizedName() + (ignoreMeta(stack) ? "" : ("~" + stack.getItemDamage()));
return stack.getUnlocalizedName() + (ignoreMeta(stack) ? "" : "~" + stack.getItemDamage());
}
public static boolean ignoreMeta(ItemStack stack) {
return stack.isItemStackDamageable() || stack.getItem() instanceof IManaItem;
return stack.isItemStackDamageable() || stack.getItem() instanceof IManaItem;
}
public static class EntryData {
public final LexiconEntry entry;