Skip to content

Commit dc447f9

Browse files
committed
fix script source name
1 parent 3a24a12 commit dc447f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/cleanroommc/groovyscript/sandbox/GroovySandbox.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ protected void loadClassScripts(GroovyScriptEngine engine, Binding binding, Set<
174174
}
175175

176176
protected void runScript(Script script){
177-
setCurrentScript(script.toString());
177+
setCurrentScript(script.getClass().getName());
178178
script.run();
179179
setCurrentScript(null);
180180
}

0 commit comments

Comments
 (0)