Fix snapshots option overriding "jar exists" check.

This commit is contained in:
David Vierra 2016-03-27 04:28:15 -10:00
parent 06e874eca4
commit 9127dcd786

View File

@ -280,7 +280,7 @@ class MCInstall(object):
versions = os.listdir(self.versionsDir)
return [v for v in versions
if os.path.exists(self.getVersionJarPath(v))
and usableVersion(v) or allowSnapshotsOption.value()]
and (usableVersion(v) or allowSnapshotsOption.value())]
def getVersionJarPath(self, version):
return os.path.join(self.versionsDir, version, "%s.jar" % version)