Fixed IllegalArgumentException in OreDictCache class

This commit is contained in:
PlayerWithoutName committed 2017-06-02 15:17:56 +02:00
1 parent 4335f4d2ab
commit dfea471bff
1 file changed
+1 -1
@@ -18,7 +18,7 @@ public final class OreDictCache
public static List<String> getOreDictName(ItemStack check)
{
if(check == null || check.getItem() == null)
if(check.isEmpty())
{
return new ArrayList<String>();
}