Fixes #1011 skip null values

This commit is contained in:
yueh 2015-03-11 23:57:48 +01:00
parent ad16550a86
commit c53b3b5dfc

View file

@ -76,8 +76,8 @@ public class OreHelper
for ( String ore : OreDictionary.getOreNames() )
{
// skip ore if it is a match already.
if ( toAdd.contains( ore ) )
// skip ore if it is a match already or null.
if ( ore == null || toAdd.contains( ore ) )
{
continue;
}