mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2026-11-18 21:59:18 +00:00
Fix making changes to group subjects via the Sponge API (#1495)
This commit is contained in:
1 file changed
-3
-3
@@ -475,7 +475,6 @@ public class PermissionHolderSubjectData implements LPSubjectData {
|
||||
if (t.getType() == HolderType.GROUP) {
|
||||
this.service.getPlugin().getGroupManager().invalidateAllGroupCaches();
|
||||
this.service.getPlugin().getUserManager().invalidateAllUserCaches();
|
||||
return CompletableFuture.completedFuture(null);
|
||||
}
|
||||
|
||||
// no further action required for transient types
|
||||
@@ -488,8 +487,6 @@ public class PermissionHolderSubjectData implements LPSubjectData {
|
||||
return this.service.getPlugin().getStorage().saveUser(user);
|
||||
} else {
|
||||
Group group = ((Group) t);
|
||||
this.service.getPlugin().getGroupManager().invalidateAllGroupCaches();
|
||||
this.service.getPlugin().getUserManager().invalidateAllUserCaches();
|
||||
return this.service.getPlugin().getStorage().saveGroup(group);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user