Skip to content

Commit

Permalink
Fix reporitng that mod need patched but not patching them if they inc…
Browse files Browse the repository at this point in the history
…lude base classes.

Signed-off-by: Ross Allan <rallanpcl@gmail.com>
  • Loading branch information
LunNova committed Jul 9, 2013
1 parent b7a65ae commit 4258176
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/common/nallar/tickthreading/patcher/PatchManager.java
Expand Up @@ -187,7 +187,11 @@ public Map<String, Integer> getHashes() {
List<Element> modElements = DomUtil.elementList(configDocument.getDocumentElement().getChildNodes());
for (Element modElement : modElements) {
for (Element classElement : DomUtil.getElementsByTag(modElement, "class")) {
hashes.put(classElement.getAttribute("id"), DomUtil.getHash(classElement) + VersionUtil.TTVersionString().hashCode() * 31);
String className = classElement.getAttribute("id");
if (className.startsWith("net.minecraft.")) {
continue;
}
hashes.put(className, DomUtil.getHash(classElement) + VersionUtil.TTVersionString().hashCode() * 31);
}
}
return hashes;
Expand Down

0 comments on commit 4258176

Please sign in to comment.