Skip to content

Commit

Permalink
fix fabric
Browse files Browse the repository at this point in the history
  • Loading branch information
andi-makes committed Dec 9, 2023
1 parent be42986 commit ab38dff
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 8 deletions.
File renamed without changes
1 change: 1 addition & 0 deletions common/src/main/resources/lighty.mixins.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"required": true,
"minVersion": "0.8",
"package": "dev.schmarrn.lighty.mixin",
"refmap": "lighty.refmap.json",
"compatibilityLevel": "JAVA_8",
"client": [
"LightUpdateMixin",
Expand Down
5 changes: 4 additions & 1 deletion fabric/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ version = rootProject.findProperty("mod_version")
group = rootProject.findProperty("maven_group")

base {
archivesName = rootProject.findProperty("mod_name")
archivesName = rootProject.findProperty("mod_name") + "-fabric"
}

repositories {
Expand All @@ -19,6 +19,9 @@ repositories {
}

loom {
mixin {
defaultRefmapName.set("lighty.refmap.json")
}
}

dependencies {
Expand Down
2 changes: 1 addition & 1 deletion fabric/src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"issues": "https://github.com/SchmarrnDevs/Lighty/issues"
},
"license": "Apache-2.0",
"icon": "assets/lighty/icon.png",
"icon": "icon.png",
"environment": "client",
"entrypoints": {
"client": [
Expand Down
10 changes: 5 additions & 5 deletions forge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,24 @@ plugins {
id 'idea'
id 'maven-publish'
id 'net.neoforged.gradle.userdev' version '7.0.57'
id 'net.neoforged.gradle.mixin' version '7.0.57'
}

version = rootProject.findProperty("mod_version")
group = rootProject.findProperty("maven_group")

repositories {
mavenLocal()
mavenCentral()
maven {
name = 'Sponge / Mixin'
url = 'https://repo.spongepowered.org/repository/maven-public/'
}
}

base {
archivesName = "${rootProject.findProperty("mod_name")}-neoforge"
}

mixin {
config "lighty.mixins.json"
}

// Mojang ships Java 17 to end users in 1.18+, so your mod should target Java 17.
java.toolchain.languageVersion = JavaLanguageVersion.of(17)

Expand Down
2 changes: 1 addition & 1 deletion forge/src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ version = "${mod_version}"
displayName = "${mod_name}"
authors = "${mod_authors}"
description = '''${mod_description}'''
logoFile = "assets/lighty/icon.png"
logoFile = "icon.png"

[[dependencies.${mod_id}]]
modId = "neoforge"
Expand Down

0 comments on commit ab38dff

Please sign in to comment.