Fixed issue with ore cache, should now properly contain all the options instead of just the current item.
This commit is contained in:
@@ -79,12 +79,17 @@ public class OreHelper
|
|||||||
if ( OreDictionary.itemMatches( oreItem, ItemStack, false ) )
|
if ( OreDictionary.itemMatches( oreItem, ItemStack, false ) )
|
||||||
{
|
{
|
||||||
add = true;
|
add = true;
|
||||||
set.add( oreItem.copy() );
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( add )
|
if ( add )
|
||||||
|
{
|
||||||
|
for (ItemStack oreItem : OreDictionary.getOres( ore ))
|
||||||
|
set.add( oreItem.copy() );
|
||||||
|
|
||||||
ores.add( OreDictionary.getOreID( ore ) );
|
ores.add( OreDictionary.getOreID( ore ) );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( !set.isEmpty() )
|
if ( !set.isEmpty() )
|
||||||
|
|||||||
Reference in New Issue
Block a user