Skip to content

Commit

Permalink
Merge pull request #1463 from Creeperface01/patch-12
Browse files Browse the repository at this point in the history
To fix #1461
  • Loading branch information
wu-vincent authored Feb 7, 2017
2 parents 0e2cd53 + 5b36e73 commit 5958c8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/main/java/cn/nukkit/Server.java
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ public void broadcastPacketsCallback(byte[] data, List<String> identifiers) {
}

public void enablePlugins(PluginLoadOrder type) {
for (Plugin plugin : this.pluginManager.getPlugins().values()) {
for (Plugin plugin : new ArrayList<>(this.pluginManager.getPlugins().values())) {
if (!plugin.isEnabled() && type == plugin.getDescription().getOrder()) {
this.enablePlugin(plugin);
}
Expand Down

0 comments on commit 5958c8b

Please sign in to comment.