mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2026-11-13 04:17:32 +00:00
Fix potential race condition in LuckPermsProvider#get
This commit is contained in:
1 file changed
+1
@@ -48,6 +48,7 @@ public final class LuckPermsProvider {
|
||||
* @throws IllegalStateException if the API is not loaded yet
|
||||
*/
|
||||
public static @NonNull LuckPerms get() {
|
||||
LuckPerms instance = LuckPermsProvider.instance;
|
||||
if (instance == null) {
|
||||
throw new NotLoadedException();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user