mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-02-10 17:31:32 +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) {
|
||||
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 -> {
|
||||
try {
|
||||
registerPermission(perms, perm);
|
||||
|
Loading…
Reference in New Issue
Block a user