- Fixed Java 7 compatibility due to accidental usage of Java 8-only methods

- Fixed mod support loading even if the respective mod isn't present
- Fixed iterator implementations missing the remove method (fine in Java 8, but not in Java 7)
- Added /mt mods command
This commit is contained in:
Stan Hebben committed 2014-06-22 19:41:19 +02:00
1 parent 3827eba3e2
commit 8e47ca9317
11 files changed
+80 -25

No files matched your search

@@ -141,12 +141,14 @@ public class GlobalRegistry {
}
public static void registerExpansion(Class cls) {
for (Annotation annotation : cls.getAnnotationsByType(ZenExpansion.class)) {
ZenExpansion eAnnotation = (ZenExpansion) annotation;
if (!expansions.containsKey(eAnnotation.value())) {
expansions.put(eAnnotation.value(), new TypeExpansion());
for (Annotation annotation : cls.getAnnotations()) {
if (annotation instanceof ZenExpansion) {
ZenExpansion eAnnotation = (ZenExpansion) annotation;
if (!expansions.containsKey(eAnnotation.value())) {
expansions.put(eAnnotation.value(), new TypeExpansion());
}
expansions.get(eAnnotation.value()).expand(cls, types);
}
expansions.get(eAnnotation.value()).expand(cls, types);
}
}