Permalink
Browse files

fix "Run Minecraft" button not working when minecraft.jar is in same …

…dir as mcpatcher.jar
  • Loading branch information...
1 parent d513f57 commit 21c9e60e23a4eb17bcb1a206cb5ca3c71b8f5cec @pclewis committed Nov 19, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/MainForm.java
View
@@ -158,7 +158,7 @@ public void run() {
public void actionPerformed(ActionEvent e) {
runWorker( new Runnable() {
public void run() {
- String path = new File(origField.getText()).getParent();
+ String path = new File(origField.getText()).getAbsoluteFile().getParent();
String cp = path + "/" + Util.joinString(Arrays.asList(
"minecraft.jar", "lwjgl.jar", "lwjgl_util.jar", "jinput.jar"
), File.pathSeparatorChar + path + "/");

0 comments on commit 21c9e60

Please sign in to comment.