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]
This commit is contained in:
Florian Nücke 2015-06-07 13:51:43 +02:00
parent d6ccf52113
commit d984658ea5

View File

@ -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()))