Permalink
Browse files

Reverse disable order; Addresses BUKKIT-1389

  • Loading branch information...
1 parent 92664af commit 6807c05321209e303e60f8816faa76e94e1a8e48 @Wolvereness Wolvereness committed May 25, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/main/java/org/bukkit/plugin/SimplePluginManager.java
@@ -388,8 +388,9 @@ public void enablePlugin(final Plugin plugin) {
}
public void disablePlugins() {
- for (Plugin plugin : getPlugins()) {
- disablePlugin(plugin);
+ Plugin[] plugins = getPlugins();
+ for (int i = plugins.length - 1; i >= 0; i--) {
+ disablePlugin(plugins[i]);
}
}

0 comments on commit 6807c05

Please sign in to comment.