mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-26 10:01:49 +01:00
Simplify loadProvider method
This commit is contained in:
parent
dce381fb28
commit
e95ca8444e
@ -35,10 +35,8 @@ public class SpawnerProviderFactory {
|
||||
}
|
||||
|
||||
private SpawnerProvider loadProvider(Class<? extends SpawnerProvider> providerClass) {
|
||||
SpawnerProvider provider;
|
||||
try {
|
||||
provider = providerClass.newInstance();
|
||||
return provider;
|
||||
return providerClass.newInstance();
|
||||
} catch (Throwable ignored) {
|
||||
return null;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user