mirror of
https://github.com/Minestom/Minestom.git
synced 2024-11-15 23:26:21 +01:00
Add null check to makeClassLoader
This commit is contained in:
parent
66ab1bb53d
commit
78734b5a3c
@ -230,7 +230,7 @@ public final class DiscoveredExtension {
|
||||
|
||||
MinestomExtensionClassLoader loader = new MinestomExtensionClassLoader(this.getName(), this.getEntrypoint(), urls, root);
|
||||
|
||||
if (this.getDependencies().length == 0) {
|
||||
if (this.getDependencies().length == 0 || MinecraftServer.getExtensionManager() == null) {
|
||||
// orphaned extension, we can insert it directly
|
||||
root.addChild(loader);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user