mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-20 23:03:48 -07:00
Speed up permission recalculation.
Based on ideas in PR #102, but rewritten for correctness. By: md_5 <git@md-5.net>
This commit is contained in:
@@ -52,6 +52,7 @@ public class Permission {
|
||||
}
|
||||
|
||||
public Permission(String name, String description, PermissionDefault defaultValue, Map<String, Boolean> children) {
|
||||
Validate.notNull(name, "Name cannot be null");
|
||||
this.name = name;
|
||||
this.description = (description == null) ? "" : description;
|
||||
|
||||
|
Reference in New Issue
Block a user