Fix for issue #11 - load errors on Windows

This commit is contained in:
walterhiggins 2013-01-06 08:53:04 +00:00
parent 099f86c9b5
commit 3bd821dba1

View file

@ -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