Permalink
Browse files

md5sum for 1.3.2

  • Loading branch information...
1 parent ba29c33 commit 4fed788c939d7dd52be661da11d2a97368303515 @prupe prupe committed Aug 14, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/com/pclewis/mcpatcher/MinecraftVersion.java
@@ -104,6 +104,8 @@
addKnownVersion("1.3", "a6effac1eaccf5d429aae340cf95ed5d");
addKnownVersion("1.3.1", "266ccbc9798afd2eadf3d6c01b4c562a");
+ addKnownVersion("1.3.2", "969699f13e5bbe7f12e40ac4f32b7d9a");
+ addKnownVersion("1.3.9999", null); // ensures that any 1.3.x is considered < the 1.4 snapshots
addKnownVersion("12w32a", "0de5595692a736307e96e3fec050a98e");
@@ -138,7 +140,7 @@ private static void addKnownVersion(String versionString, String md5) {
if (version == null) {
throw new IllegalArgumentException("bad known version " + version);
}
- if (!md5.matches("\\p{XDigit}{32}")) {
+ if (md5 != null && !md5.matches("\\p{XDigit}{32}")) {
throw new IllegalArgumentException("bad md5 sum for known version " + version);
}
versionOrdering.add(version);
@@ -396,6 +398,6 @@ boolean isNewerThanAnyKnownVersion() {
}
static boolean isKnownMD5(String md5) {
- return knownMD5s.containsValue(md5);
+ return md5 != null && knownMD5s.containsValue(md5);
}
}

0 comments on commit 4fed788

Please sign in to comment.