Skip to content
This repository was archived by the owner on Dec 30, 2022. It is now read-only.

Commit 5323df3

Browse files
committed
Also check updates for Fabric API
Signed-off-by: deathsgun <deathsgun@protonmail.com>
1 parent 2e7d122 commit 5323df3

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

src/main/kotlin/xyz/deathsgun/modmanager/update/UpdateManager.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ import kotlin.io.path.absolutePathString
5757
class UpdateManager {
5858

5959
private val logger = LogManager.getLogger("UpdateCheck")
60-
private val blockedIds = arrayOf("java", "minecraft")
60+
private val blockedIds = arrayOf("java", "minecraft", "fabricloader")
6161
private val http: HttpClient = HttpClient.newBuilder().connectTimeout(Duration.ofSeconds(15)).build()
6262
val updates = ArrayList<Update>()
6363

@@ -370,7 +370,7 @@ class UpdateManager {
370370

371371
private fun getCheckableMods(): List<ModMetadata> {
372372
return FabricLoader.getInstance().allMods.map { it.metadata }.filter {
373-
!it.id.startsWith("fabric") &&
373+
!it.id.startsWith("fabric-") &&
374374
!CustomValueUtil.getBoolean("fabric-loom:generated", it).orElse(false) &&
375375
!hasDisabledUpdates(it) &&
376376
!blockedIds.contains(it.id)

src/main/resources/fabric.mod.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@
1313
"issues": "https://github.com/DeathsGun/ModManager/issues"
1414
},
1515
"icon": "assets/modmanager/icon.png",
16-
"license": "APL-2.0",
16+
"license": "Apache-2.0",
1717
"environment": "client",
1818
"entrypoints": {
19-
"client": [
20-
{
21-
"adapter": "kotlin",
22-
"value": "xyz.deathsgun.modmanager.ModManager"
23-
}
24-
],
25-
"modmenu": [
26-
"xyz.deathsgun.modmanager.ModMenuEntrypoint"
19+
"client": [
20+
{
21+
"adapter": "kotlin",
22+
"value": "xyz.deathsgun.modmanager.ModManager"
23+
}
24+
],
25+
"modmenu": [
26+
"xyz.deathsgun.modmanager.ModMenuEntrypoint"
2727
]
2828
},
2929
"custom": {

0 commit comments

Comments
 (0)