mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-10-03 07:47:32 +02:00
Fix potential race condition in LuckPermsProvider#get
This commit is contained in:
parent
9d4f278117
commit
fed5a0fd87
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user