mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-07 20:31:51 +09:00
moduleinfo won't contain bad modules
This commit is contained in:
@@ -118,9 +118,11 @@ object ModMgr {
|
|||||||
}
|
}
|
||||||
catch (noSuchModule: FileNotFoundException) {
|
catch (noSuchModule: FileNotFoundException) {
|
||||||
printdbgerr(this, "No such module: $moduleName, skipping...")
|
printdbgerr(this, "No such module: $moduleName, skipping...")
|
||||||
|
moduleInfo.remove(moduleName)
|
||||||
}
|
}
|
||||||
catch (e: ClassNotFoundException) {
|
catch (e: ClassNotFoundException) {
|
||||||
printdbgerr(this, "$moduleName has nonexisting entry point, skipping...")
|
printdbgerr(this, "$moduleName has nonexisting entry point, skipping...")
|
||||||
|
moduleInfo.remove(moduleName)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user