mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-24 01:06:01 +01: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. By: Jeffrey Wardian <krinsdeath@hotmail.com>
This commit is contained in:
parent
63dc4b52b3
commit
69740791f7
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