mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-10 00:52:22 -07:00
Moved itr.remove() in loadPlugins(). Thanks lahwran!
This was moved so that the loop does not end until it has gone through a whole pass without finding any loadable plugins. By: EvilSeph <evilseph@gmail.com>
This commit is contained in:
@@ -134,7 +134,6 @@ public final class SimplePluginManager implements PluginManager {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
plugin = loadPlugin(file, finalPass);
|
plugin = loadPlugin(file, finalPass);
|
||||||
itr.remove();
|
|
||||||
} catch (UnknownDependencyException ex) {
|
} catch (UnknownDependencyException ex) {
|
||||||
if (finalPass) {
|
if (finalPass) {
|
||||||
server.getLogger().log(Level.SEVERE, "Could not load '" + file.getPath() + "' in folder '" + directory.getPath() + "': " + ex.getMessage(), ex);
|
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);
|
result.add(plugin);
|
||||||
allFailed = false;
|
allFailed = false;
|
||||||
finalPass = false;
|
finalPass = false;
|
||||||
|
itr.remove();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (finalPass) {
|
if (finalPass) {
|
||||||
|
Reference in New Issue
Block a user