From d896cda22c175718d5ad951b8c5d4fc6ad739e30 Mon Sep 17 00:00:00 2001 From: LeoDog896 Date: Fri, 26 Mar 2021 19:52:31 -0400 Subject: [PATCH] Add comment describing null check --- .../net/minestom/server/extensions/DiscoveredExtension.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/minestom/server/extensions/DiscoveredExtension.java b/src/main/java/net/minestom/server/extensions/DiscoveredExtension.java index a7719ba02..e175844ba 100644 --- a/src/main/java/net/minestom/server/extensions/DiscoveredExtension.java +++ b/src/main/java/net/minestom/server/extensions/DiscoveredExtension.java @@ -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 {