diff options
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/bukkit/plugin/SimplePluginManager.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/bukkit/plugin/SimplePluginManager.java b/src/main/java/org/bukkit/plugin/SimplePluginManager.java index 0ba72b75..a79c3583 100644 --- a/src/main/java/org/bukkit/plugin/SimplePluginManager.java +++ b/src/main/java/org/bukkit/plugin/SimplePluginManager.java @@ -134,7 +134,6 @@ public final class SimplePluginManager implements PluginManager { try { plugin = loadPlugin(file, finalPass); - itr.remove(); } catch (UnknownDependencyException ex) { if (finalPass) { server.getLogger().log(Level.SEVERE, "Could not load '" + file.getPath() + "' in folder '" + directory.getPath() + "': " + ex.getMessage(), ex); @@ -154,6 +153,7 @@ public final class SimplePluginManager implements PluginManager { result.add(plugin); allFailed = false; finalPass = false; + itr.remove(); } } if (finalPass) { @@ -275,7 +275,7 @@ public final class SimplePluginManager implements PluginManager { if (!pluginCommands.isEmpty()) { commandMap.registerAll(plugin.getDescription().getName(), pluginCommands); } - + try { plugin.getPluginLoader().enablePlugin(plugin); } catch (Throwable ex) { |