diff options
-rw-r--r-- | api/logic/tools/MCEditTool.cpp | 8 | ||||
-rw-r--r-- | application/pages/WorldListPage.cpp | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/api/logic/tools/MCEditTool.cpp b/api/logic/tools/MCEditTool.cpp index f3d550d0..8e0d7ae2 100644 --- a/api/logic/tools/MCEditTool.cpp +++ b/api/logic/tools/MCEditTool.cpp @@ -62,13 +62,13 @@ void MCEditTool::runImpl() QDir mceditDir(mceditPath); QString program; #ifdef Q_OS_LINUX - if (mceditDir.exists("mcedit.py")) + if (mceditDir.exists("mcedit.sh")) { - program = mceditDir.absoluteFilePath("mcedit.py"); + program = mceditDir.absoluteFilePath("mcedit.sh"); } - else if (mceditDir.exists("mcedit.sh")) + else if (mceditDir.exists("mcedit.py")) { - program = mceditDir.absoluteFilePath("mcedit.sh"); + program = mceditDir.absoluteFilePath("mcedit.py"); } #elif defined(Q_OS_WIN32) if (mceditDir.exists("mcedit.exe")) diff --git a/application/pages/WorldListPage.cpp b/application/pages/WorldListPage.cpp index befb6b5e..fcef716b 100644 --- a/application/pages/WorldListPage.cpp +++ b/application/pages/WorldListPage.cpp @@ -172,13 +172,13 @@ void WorldListPage::on_mcEditBtn_clicked() QDir mceditDir(mceditPath); QString program; #ifdef Q_OS_LINUX - if (mceditDir.exists("mcedit.py")) + if (mceditDir.exists("mcedit.sh")) { - program = mceditDir.absoluteFilePath("mcedit.py"); + program = mceditDir.absoluteFilePath("mcedit.sh"); } - else if (mceditDir.exists("mcedit.sh")) + else if (mceditDir.exists("mcedit.py")) { - program = mceditDir.absoluteFilePath("mcedit.sh"); + program = mceditDir.absoluteFilePath("mcedit.py"); } #elif defined(Q_OS_WIN32) if (mceditDir.exists("mcedit.exe")) |