mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2026-11-24 09:24:24 +00:00
Some misc refactoring / code cleanup
This commit is contained in:
20 files changed
+29
-41
No files matched your search
@@ -45,7 +45,6 @@ public final class ProxyFactory {
|
||||
private static final boolean IS_API_7 = isApi7();
|
||||
private static boolean isApi7() {
|
||||
try {
|
||||
//noinspection JavaReflectionMemberAccess
|
||||
Subject.class.getDeclaredMethod("asSubjectReference");
|
||||
return true;
|
||||
} catch (NoSuchMethodException e) {
|
||||
|
||||
+1
-5
@@ -240,11 +240,7 @@ public class CalculatedSubjectData implements LPSubjectData {
|
||||
// flatten
|
||||
Set<LPSubjectReference> result = new LinkedHashSet<>();
|
||||
for (Set<LPSubjectReference> set : sorted.values()) {
|
||||
for (LPSubjectReference e : set) {
|
||||
if (!result.contains(e)) {
|
||||
result.add(e);
|
||||
}
|
||||
}
|
||||
result.addAll(set);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user