Revert "Load plugins in alphabetical-ish order."
This reverts commit 384228b751
.
This commit is contained in:
parent
384228b751
commit
82d5954f2f
@ -259,10 +259,7 @@ public class PluginManager
|
|||||||
Preconditions.checkNotNull( folder, "folder" );
|
Preconditions.checkNotNull( folder, "folder" );
|
||||||
Preconditions.checkArgument( folder.isDirectory(), "Must load from a directory" );
|
Preconditions.checkArgument( folder.isDirectory(), "Must load from a directory" );
|
||||||
|
|
||||||
File[] files = folder.listFiles();
|
for ( File file : folder.listFiles() )
|
||||||
Arrays.sort( files );
|
|
||||||
|
|
||||||
for ( File file : files )
|
|
||||||
{
|
{
|
||||||
if ( file.isFile() && file.getName().endsWith( ".jar" ) )
|
if ( file.isFile() && file.getName().endsWith( ".jar" ) )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user