mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-09 18:08:37 +01:00
Add comment describing null check
This commit is contained in:
parent
78734b5a3c
commit
d896cda22c
@ -230,7 +230,7 @@ public final class DiscoveredExtension {
|
||||
|
||||
MinestomExtensionClassLoader loader = new MinestomExtensionClassLoader(this.getName(), this.getEntrypoint(), urls, root);
|
||||
|
||||
if (this.getDependencies().length == 0 || MinecraftServer.getExtensionManager() == null) {
|
||||
if (this.getDependencies().length == 0 || MinecraftServer.getExtensionManager() == null) { // it also may invoked in early class loader
|
||||
// orphaned extension, we can insert it directly
|
||||
root.addChild(loader);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user