diff options
author | madmaxoft <github@xoft.cz> | 2013-10-06 16:58:19 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2013-10-06 16:58:19 +0200 |
commit | d8dfa8cd88d08058cf27819b647d441000528597 (patch) | |
tree | b009e0a89a1199620eea1054cfe3475a64b18c16 /source | |
parent | APIDump: Brought cItem docs up-to-date. (diff) | |
download | cuberite-d8dfa8cd88d08058cf27819b647d441000528597.tar cuberite-d8dfa8cd88d08058cf27819b647d441000528597.tar.gz cuberite-d8dfa8cd88d08058cf27819b647d441000528597.tar.bz2 cuberite-d8dfa8cd88d08058cf27819b647d441000528597.tar.lz cuberite-d8dfa8cd88d08058cf27819b647d441000528597.tar.xz cuberite-d8dfa8cd88d08058cf27819b647d441000528597.tar.zst cuberite-d8dfa8cd88d08058cf27819b647d441000528597.zip |
Diffstat (limited to '')
-rw-r--r-- | source/PluginManager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/PluginManager.cpp b/source/PluginManager.cpp index eb347968a..a557bdc03 100644 --- a/source/PluginManager.cpp +++ b/source/PluginManager.cpp @@ -75,9 +75,9 @@ void cPluginManager::FindPlugins(void) AStringList Files = GetDirectoryContents(PluginsPath.c_str()); for (AStringList::const_iterator itr = Files.begin(); itr != Files.end(); ++itr) { - if (!cFile::IsFolder(PluginsPath + *itr)) + if ((*itr == ".") || (*itr == "..") || (!cFile::IsFolder(PluginsPath + *itr))) { - // We only want folders + // We only want folders, and don't want "." or ".." continue; } |