mirror of https://github.com/kami-blue/client
Add incorrect annotation fix (#46)
This commit is contained in:
parent
d025dd44d5
commit
083e93546b
|
@ -40,8 +40,11 @@ public class Module {
|
|||
registerAll(bind, enabled);
|
||||
}
|
||||
|
||||
private Info getAnnotation() { // this is 3 sprint bug
|
||||
return getClass().isAnnotationPresent(Info.class) ? getClass().getAnnotation(Info.class) : Sprint.class.getAnnotation(Info.class); // dummy annotation
|
||||
private Info getAnnotation() {
|
||||
if (getClass().isAnnotationPresent(Info.class)) {
|
||||
return getClass().getAnnotation(Info.class);
|
||||
}
|
||||
throw new IllegalStateException("No Annotation on class " + this.getClass().getCanonicalName() + "!");
|
||||
}
|
||||
|
||||
public void onUpdate() {}
|
||||
|
|
Loading…
Reference in New Issue