Fix for bug #11 - last change was wrong
This commit is contained in:
parent
3bd821dba1
commit
4896e8414e
1 changed files with 2 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
package net.walterhiggins.scriptcraft;
|
||||
import java.io.File;
|
||||
|
||||
import java.io.IOException;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
import org.bukkit.command.*;
|
||||
import org.mozilla.javascript.*;
|
||||
|
@ -32,8 +32,7 @@ public class ScriptCraftPlugin extends JavaPlugin
|
|||
//
|
||||
// fix for bug #11
|
||||
//
|
||||
canonicalPath = f.getCanonicalPath();
|
||||
canonicalPath = canonicalPath.replaceAll("\\\\", "/");
|
||||
canonicalPath = f.getCanonicalPath().replaceAll("\\\\", "/");
|
||||
this.evaluator.eval("load(\"" + canonicalPath + "\")", null);
|
||||
} catch (IOException e) {
|
||||
// TODO Auto-generated catch block
|
||||
|
|
Reference in a new issue