mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-18 03:36:47 -04:00
Merge branch 'OC1.3-MC1.7.10' of github.com:MightyPirates/OpenComputers into master-MC1.7.10
This commit is contained in:
commit
e38309df8b
@ -56,13 +56,15 @@ object Mods {
|
||||
def isAvailable: Boolean
|
||||
}
|
||||
|
||||
class SimpleMod(val id: String) {
|
||||
val isAvailable = {
|
||||
class SimpleMod(val id: String) extends Mod {
|
||||
protected val isModLoaded = {
|
||||
val version = VersionParser.parseVersionReference(id)
|
||||
if (Loader.isModLoaded(version.getLabel))
|
||||
version.containsVersion(Loader.instance.getIndexedModList.get(version.getLabel).getProcessedVersion)
|
||||
else ModAPIManager.INSTANCE.hasAPI(version.getLabel)
|
||||
}
|
||||
|
||||
override def isAvailable = isModLoaded
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user