Add comment describing null check

This commit is contained in:
LeoDog896 2021-03-26 19:52:31 -04:00
parent 78734b5a3c
commit d896cda22c

View File

@ -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 {