Fixed smelting recipes
This commit is contained in:
parent
a5185273ce
commit
d21415fcae
2 changed files with 5 additions and 6 deletions
|
@ -949,12 +949,9 @@ public class Mekanism
|
||||||
}
|
}
|
||||||
|
|
||||||
for(Object obj : FurnaceRecipes.smelting().getSmeltingList().entrySet())
|
for(Object obj : FurnaceRecipes.smelting().getSmeltingList().entrySet())
|
||||||
{
|
|
||||||
if(obj instanceof Map.Entry)
|
|
||||||
{
|
{
|
||||||
Map.Entry<Integer, ItemStack> entry = (Map.Entry<Integer, ItemStack>)obj;
|
Map.Entry<Integer, ItemStack> entry = (Map.Entry<Integer, ItemStack>)obj;
|
||||||
TileEntityEnergizedSmelter.furnaceRecipes.put(new ItemStack(entry.getKey(), 1, 0), entry.getValue());
|
TileEntityEnergizedSmelter.furnaceRecipes.put(new ItemStack(entry.getKey(), 1, OreDictionary.WILDCARD_VALUE), entry.getValue());
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
event.registerServerCommand(new CommandMekanism());
|
event.registerServerCommand(new CommandMekanism());
|
||||||
|
|
|
@ -342,7 +342,9 @@ public final class RecipeHandler
|
||||||
|
|
||||||
if(entry.getKey() instanceof ItemStack)
|
if(entry.getKey() instanceof ItemStack)
|
||||||
{
|
{
|
||||||
if(((ItemStack)entry.getKey()).isItemEqual(input))
|
ItemStack stack = (ItemStack)entry.getKey();
|
||||||
|
|
||||||
|
if(StackUtils.equalsWildcard(stack, input))
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue