mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-10 02:17:41 +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);
|
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
|
// orphaned extension, we can insert it directly
|
||||||
root.addChild(loader);
|
root.addChild(loader);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user