Fix for issue #11 - load errors on Windows
This commit is contained in:
parent
099f86c9b5
commit
3bd821dba1
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ public class ScriptCraftPlugin extends JavaPlugin
|
|||
// fix for bug #11
|
||||
//
|
||||
canonicalPath = f.getCanonicalPath();
|
||||
canonicalPath.replaceAll("\\\\", "/");
|
||||
canonicalPath = canonicalPath.replaceAll("\\\\", "/");
|
||||
this.evaluator.eval("load(\"" + canonicalPath + "\")", null);
|
||||
} catch (IOException e) {
|
||||
// TODO Auto-generated catch block
|
||||
|
|
Reference in a new issue