Just in case people make directories ending in .jar

This commit is contained in:
md_5 2013-01-12 14:19:16 +11:00
parent ded4d52151
commit 6dda7e1c14

View File

@ -177,7 +177,7 @@ public class PluginManager
for (File file : folder.listFiles()) for (File file : folder.listFiles())
{ {
if (file.getName().endsWith(".jar")) if (file.isFile() && file.getName().endsWith(".jar"))
{ {
try try
{ {