Load plugins in alphabetical-ish order.

This commit is contained in:
Steve Anton 2013-04-27 23:46:45 -07:00 committed by md_5
parent 50f8bd2eb0
commit 384228b751

View File

@ -259,7 +259,10 @@ public class PluginManager
Preconditions.checkNotNull( folder, "folder" );
Preconditions.checkArgument( folder.isDirectory(), "Must load from a directory" );
for ( File file : folder.listFiles() )
File[] files = folder.listFiles();
Arrays.sort( files );
for ( File file : files )
{
if ( file.isFile() && file.getName().endsWith( ".jar" ) )
{