Account for meta in the JEI ISubtypeInterpreter

I think an old JEI was using meta + the `ISubtypeInterpreter`, but it was not intended, and JEI does not do that now.
Right now, if you look up Mekanism stuff in JEI it shows all kinds of blocks instead of just the intended block.
This PR fixes the Mekanism `ISubtypeInterpreter` so that it differentiates machines and basic blocks again.
This commit is contained in:
mezz authored and GitHub committed 2016-10-28 20:07:17 -07:00
1 parent 8079bb2c23
commit 92b5a2b115
1 file changed
+3 -3
@@ -122,16 +122,16 @@ public class MekanismJEI implements IModPlugin
@Override
public String getSubtypeInfo(ItemStack itemStack)
{
String ret = "";
String ret = Integer.toString(itemStack.getMetadata());
if(itemStack.getItem() instanceof ITierItem)
{
ret += ((ITierItem)itemStack.getItem()).getBaseTier(itemStack).getSimpleName();
ret += ":" + ((ITierItem)itemStack.getItem()).getBaseTier(itemStack).getSimpleName();
}
if(itemStack.getItem() instanceof IFactory)
{
ret += RecipeType.values()[((IFactory)itemStack.getItem()).getRecipeType(itemStack)].getName();
ret += ":" + RecipeType.values()[((IFactory)itemStack.getItem()).getRecipeType(itemStack)].getName();
}
return ret.isEmpty() ? null : ret.toLowerCase();