mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-31 22:22:49 +00:00
Removed superfluous recalculation call; Fixes BUKKIT-3728
The permission attachment interface provides two methods each for setting and unsetting permissions. Each one also provides an extra call to the recalculatePermissions() method on the permissible, which degrades performance. This commit removes the duplicate call to recalculate permissions.
This commit is contained in:
parent
923506ece3
commit
c6f2ec2eee
1 changed files with 0 additions and 2 deletions
|
@ -90,7 +90,6 @@ public class PermissionAttachment {
|
|||
*/
|
||||
public void setPermission(Permission perm, boolean value) {
|
||||
setPermission(perm.getName(), value);
|
||||
permissible.recalculatePermissions();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -114,7 +113,6 @@ public class PermissionAttachment {
|
|||
*/
|
||||
public void unsetPermission(Permission perm) {
|
||||
unsetPermission(perm.getName());
|
||||
permissible.recalculatePermissions();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue