diff --git a/paper-api/src/main/java/org/bukkit/plugin/java/PluginClassLoader.java b/paper-api/src/main/java/org/bukkit/plugin/java/PluginClassLoader.java index 3be5634123..9fc6bd7721 100644 --- a/paper-api/src/main/java/org/bukkit/plugin/java/PluginClassLoader.java +++ b/paper-api/src/main/java/org/bukkit/plugin/java/PluginClassLoader.java @@ -116,10 +116,14 @@ final class PluginClassLoader extends URLClassLoader { CodeSource source = new CodeSource(url, signers); result = defineClass(name, classBytes, 0, classBytes.length, source); + } + if (result == null) { + result = super.findClass(name); + } + + if (result != null) { loader.setClass(name, result); - } else { - throw new ClassNotFoundException(name); } }