From d984658ea5c66c39f1a253c5c6f7d45d3094e633 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20N=C3=BCcke?= Date: Sun, 7 Jun 2015 13:51:43 +0200 Subject: [PATCH] Fixed update check, closes #1200. That's what I get for listening to people's advice :P [the replaceIn *did* serve a purpose after all... oh well, I suppose this is a cleaner solution now anyway] --- src/main/scala/li/cil/oc/util/UpdateCheck.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/scala/li/cil/oc/util/UpdateCheck.scala b/src/main/scala/li/cil/oc/util/UpdateCheck.scala index f485f1450..b8997f34e 100644 --- a/src/main/scala/li/cil/oc/util/UpdateCheck.scala +++ b/src/main/scala/li/cil/oc/util/UpdateCheck.scala @@ -22,7 +22,8 @@ object UpdateCheck { } private def initialize(): Option[Release] = { - if (Settings.get.updateCheck && OpenComputers.Version != "@VERSION@") { + // Keep the version template split up so it's not replaced with the actual version... + if (Settings.get.updateCheck && OpenComputers.Version != ("@" + "VERSION" + "@")) { try { OpenComputers.log.info("Starting OpenComputers version check.") val reader = new JsonReader(new InputStreamReader(releasesUrl.openStream()))