mirror of https://github.com/kami-blue/client
Merge remote-tracking branch 'origin/feature/master' into feature/master
This commit is contained in:
commit
df4a3b5b82
|
@ -119,7 +119,11 @@ public class ModuleManager {
|
|||
|
||||
|
||||
public static Module getModuleByName(String name) {
|
||||
return modules.get(lookup.get(name.toLowerCase()));
|
||||
Integer index = lookup.get(name.toLowerCase());
|
||||
if (index == null) {
|
||||
throw new IllegalArgumentException("getModuleByName() failed. Are you calling this too early? Is the module spelled correctly? Please check!!!!");
|
||||
}
|
||||
return modules.get(index);
|
||||
}
|
||||
|
||||
public static boolean isModuleEnabled(String moduleName) {
|
||||
|
|
Loading…
Reference in New Issue