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

Commit a727322

Browse files
committed
Updated mappings and fabric loader.
Fabric loader has moved the version parsing stuff. Closes #81 Signed-off-by: DeathsGun <deathsgun@protonmail.com>
1 parent e3784f0 commit a727322

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

gradle.properties

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,13 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
1716
# Done to increase the memory available to gradle.
1817
org.gradle.jvmargs=-Xms2G -Xmx4G
19-
2018
# Fabric Properties
2119
# check this on https://modmuss50.me/fabric.html
2220
minecraft_version=1.17.1
23-
yarn_mappings=1.17.1+build.39
24-
loader_version=0.11.6
21+
yarn_mappings=1.17.1+build.61
22+
loader_version=0.12.1
2523
# Mod Properties
2624
mod_version=1.1.1-alpha+1.17
2725
maven_group=xyz.deathsgun

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ package xyz.deathsgun.modmanager.update
1818

1919
import net.fabricmc.loader.api.SemanticVersion
2020
import net.fabricmc.loader.api.VersionParsingException
21-
import net.fabricmc.loader.util.version.VersionDeserializer
2221
import xyz.deathsgun.modmanager.api.mod.Version
2322
import xyz.deathsgun.modmanager.config.Config
2423

@@ -52,9 +51,9 @@ object VersionFinder {
5251
.filter { it.gameVersions.any { it1 -> it1.startsWith(mcVersion) } }
5352
var latestVersion: Version? = null
5453
var latestVer: SemanticVersion? = null
55-
val installedVer = VersionDeserializer.deserializeSemantic(installedVersion)
54+
val installedVer = SemanticVersion.parse(installedVersion)
5655
for (version in versions) {
57-
val parsedVersion = VersionDeserializer.deserializeSemantic(version.version)
56+
val parsedVersion = SemanticVersion.parse(version.version)
5857
if (latestVersion == null) {
5958
latestVersion = version
6059
latestVer = parsedVersion

src/main/resources/fabric.mod.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"modmanager.mixins.json"
3636
],
3737
"depends": {
38-
"fabricloader": ">=0.11.3",
38+
"fabricloader": ">=0.12",
3939
"modmenu": ">=${modmenu_version}",
4040
"fabric-language-kotlin": ">=${fabric_kotlin_version}",
4141
"minecraft": "1.17.x",

0 commit comments

Comments
 (0)