mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-13 17:28:52 -04:00
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:
parent
d6ccf52113
commit
d984658ea5
@ -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()))
|
||||
|
Loading…
x
Reference in New Issue
Block a user