mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-09-09 12:38:01 +02:00
Optimize LuckPermsPermissionMap putAll implementation
This commit is contained in:
parent
9546987970
commit
446fa48d9a
@ -116,9 +116,11 @@ public final class LuckPermsPermissionMap extends ForwardingMap<String, Permissi
|
||||
|
||||
@Override
|
||||
public void putAll(@NonNull Map<? extends String, ? extends Permission> m) {
|
||||
for (Map.Entry<? extends String, ? extends Permission> ent : m.entrySet()) {
|
||||
put(ent.getKey(), ent.getValue());
|
||||
for (Map.Entry<? extends String, ? extends Permission> e : m.entrySet()) {
|
||||
this.plugin.getPermissionRegistry().insert(e.getKey());
|
||||
super.put(e.getKey(), inject(e.getValue()));
|
||||
}
|
||||
update();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -116,9 +116,11 @@ public final class LuckPermsPermissionMap extends ForwardingMap<String, Permissi
|
||||
|
||||
@Override
|
||||
public void putAll(@NonNull Map<? extends String, ? extends Permission> m) {
|
||||
for (Map.Entry<? extends String, ? extends Permission> ent : m.entrySet()) {
|
||||
put(ent.getKey(), ent.getValue());
|
||||
for (Map.Entry<? extends String, ? extends Permission> e : m.entrySet()) {
|
||||
this.plugin.getPermissionRegistry().insert(e.getKey());
|
||||
super.put(e.getKey(), inject(e.getValue()));
|
||||
}
|
||||
update();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user