diff --git a/core/src/main/java/org/geysermc/geyser/extension/GeyserExtensionClassLoader.java b/core/src/main/java/org/geysermc/geyser/extension/GeyserExtensionClassLoader.java index 5345b2a528d..5056d76ff0d 100644 --- a/core/src/main/java/org/geysermc/geyser/extension/GeyserExtensionClassLoader.java +++ b/core/src/main/java/org/geysermc/geyser/extension/GeyserExtensionClassLoader.java @@ -84,10 +84,10 @@ protected Class findClass(String name) throws ClassNotFoundException { protected Class findClass(String name, boolean checkGlobal) throws ClassNotFoundException { // Don't let extensions load classes from Geyser or minecraft packages without a warning if (name.startsWith("org.geysermc.geyser.") || name.startsWith("net.minecraft.")) { - if (!warned) { + if (!warnedForInternalClassLoad) { GeyserImpl.getInstance().getLogger().warning("Extension " + this.description.name() + " loads class " + name + " from the Geyser package. " + "This can change at any time and break the extension, additionally to causing unexpected behaviour!"); - warned = true; + warnedForInternalClassLoad = true; } }