summaryrefslogtreecommitdiffstats
path: root/logic/launch/steps/CheckJava.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'logic/launch/steps/CheckJava.cpp')
-rw-r--r--logic/launch/steps/CheckJava.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/logic/launch/steps/CheckJava.cpp b/logic/launch/steps/CheckJava.cpp
index 66f7cc2b..a4eaa307 100644
--- a/logic/launch/steps/CheckJava.cpp
+++ b/logic/launch/steps/CheckJava.cpp
@@ -83,9 +83,9 @@ void CheckJava::checkJavaFinished(JavaCheckResult result)
else
{
auto instance = m_parent->instance();
- emit logLine(tr("Java version is %1!\n").arg(result.javaVersion),
+ emit logLine(tr("Java version is %1!\n").arg(result.javaVersion.toString()),
MessageLevel::MultiMC);
- instance->settings()->set("JavaVersion", result.javaVersion);
+ instance->settings()->set("JavaVersion", result.javaVersion.toString());
instance->settings()->set("JavaTimestamp", m_javaUnixTime);
emitSucceeded();
}