Skip to content

Commit 8f65faa

Browse files
Fix importing for effect commands
1 parent abe1158 commit 8f65faa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/skriptlang/reflect/java/elements/structures/StructImport.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public boolean init(Expression<?>[] exprs, int matchedPattern, Kleenean isDelaye
136136
}
137137

138138
className = parseResult.regexes.get(0).group();
139-
return registerImport(className, getParser().getCurrentScript());
139+
return registerImport(className, null); // No script in an effect command
140140
}
141141

142142
@Override

0 commit comments

Comments
 (0)