File tree Expand file tree Collapse file tree 4 files changed +15
-3
lines changed
Expand file tree Collapse file tree 4 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -47,8 +47,8 @@ dependencies {
4747 minecraft(" com.mojang:minecraft:$mcVersion " )
4848 mappings(loom.officialMojangMappings())
4949 modImplementation(" net.fabricmc:fabric-loader:${deps[" fabric_loader" ]} " )
50- include(" io.github.spair:imgui-java-binding:1.90.9 " )
51- implementation(" io.github.spair:imgui-java-binding:1.90.9 " ) {
50+ include(" io.github.spair:imgui-java-binding:${deps[ " imgui_java " ]} " )
51+ implementation(" io.github.spair:imgui-java-binding:${property( " deps.imgui_java " )} " ) {
5252 isTransitive = false
5353 }
5454}
Original file line number Diff line number Diff line change @@ -19,6 +19,12 @@ base {
1919 archivesName.set(mod.name)
2020}
2121
22+ loom {
23+ mixin {
24+ defaultRefmapName.set(" imguimc-refmap.json" )
25+ }
26+ }
27+
2228dependencies {
2329 minecraft(" com.mojang:minecraft:$mcVersion " )
2430 mappings(loom.officialMojangMappings())
@@ -32,6 +38,8 @@ tasks.register<Copy>("buildAndCollect") {
3238}
3339
3440tasks.processResources {
41+ from(project.project(" :$mcVersion " ).sourceSets.main.get().resources)
42+
3543 inputs.property(" id" , mod.id)
3644 inputs.property(" name" , mod.name)
3745 inputs.property(" version" , mod.version)
Original file line number Diff line number Diff line change @@ -43,6 +43,8 @@ tasks.register<Copy>("buildAndCollect") {
4343}
4444
4545tasks.processResources {
46+ from(project.project(" :$mcVersion " ).sourceSets.main.get().resources)
47+
4648 inputs.property(" id" , mod.id)
4749 inputs.property(" name" , mod.name)
4850 inputs.property(" version" , mod.version)
@@ -62,4 +64,5 @@ tasks.processResources {
6264tasks.jar {
6365 duplicatesStrategy = DuplicatesStrategy .EXCLUDE
6466 from(zipTree(project(" :$mcVersion " ).tasks.jar.get().archiveFile))
67+ exclude(" imguimc-refmap.json" )
6568}
Original file line number Diff line number Diff line change 1111 ],
1212 "injectors" : {
1313 "defaultRequire" : 1
14- }
14+ },
15+ "refmap" : " imguimc-refmap.json"
1516}
You can’t perform that action at this time.
0 commit comments