We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f46e2fb commit 135351dCopy full SHA for 135351d
src/main/java/com/cleanroommc/groovyscript/sandbox/CustomGroovyScriptEngine.java
@@ -171,7 +171,7 @@ public boolean deleteScriptCache() {
171
this.loadedClasses.clear();
172
getClassLoader().clearCache();
173
try {
174
- FileUtils.cleanDirectory(this.cacheRoot);
+ if (this.cacheRoot.exists()) FileUtils.cleanDirectory(this.cacheRoot);
175
return true;
176
} catch (IOException e) {
177
GroovyScript.LOGGER.throwing(e);
0 commit comments