Skip to content

Commit e21878f

Browse files
committed
fix(runtime): NPE in non-compiler runtimes
1 parent 90f6117 commit e21878f

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)