Skip to content

Commit 8445d2d

Browse files
authored
Merge pull request #21 from bluelhf/fix/non-compiler-npe
Fix NPE when loading classes in non-compiler runtimes
2 parents 90f6117 + e21878f commit 8445d2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/byteskript/skript/runtime/Skript.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ private static Skript findInstance() {
276276
public Class<?> getClass(String name) {
277277
final Class<?> found = getClass(name, Skript.class);
278278
if (found != null) return found;
279-
for (Library library : compiler.getLibraries()) {
279+
for (Library library : getLoadedLibraries()) {
280280
final Class<?> test = getClass(name, library.getClass());
281281
if (test != null) return test;
282282
}

0 commit comments

Comments
 (0)