mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-02-14 19:32:24 +01:00
Fixed ConcurrentModificationException on startup
Fixes https://github.com/BentoBoxWorld/BentoBox/issues/1312
Was introduced by 1f3a79127a
This commit is contained in:
parent
1f3a79127a
commit
b558c905a4
@ -172,7 +172,7 @@ public class AddonsManager {
|
|||||||
|
|
||||||
void setPerms(Addon addon) {
|
void setPerms(Addon addon) {
|
||||||
ConfigurationSection perms = addon.getDescription().getPermissions();
|
ConfigurationSection perms = addon.getDescription().getPermissions();
|
||||||
perms.getKeys(true).parallelStream().filter(perm -> perms.contains(perm + DEFAULT) && perms.contains(perm + ".description"))
|
perms.getKeys(true).stream().filter(perm -> perms.contains(perm + DEFAULT) && perms.contains(perm + ".description"))
|
||||||
.forEach(perm -> {
|
.forEach(perm -> {
|
||||||
try {
|
try {
|
||||||
registerPermission(perms, perm);
|
registerPermission(perms, perm);
|
||||||
|
Loading…
Reference in New Issue
Block a user