Skip to content

Commit

Permalink
Fix processResources
Browse files Browse the repository at this point in the history
  • Loading branch information
Juuxel committed Apr 26, 2019
1 parent 8cc8793 commit 028b874
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 28 deletions.
22 changes: 11 additions & 11 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,17 @@ allprojects {
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}

tasks.getByName<ProcessResources>("processResources") {
inputs.property("version", project.version)
filesMatching("fabric.mod.json") {
expand(
mutableMapOf(
"version" to project.version
)
)
}
}
}

minecraft {
Expand All @@ -72,14 +83,3 @@ dependencies {
modCompileAndInclude("alexiil.mc.lib:libblockattributes:0.4.0")
modCompileAndInclude("io.github.cottonmc:cotton:0.6.1+1.14-SNAPSHOT")
}

tasks.getByName<ProcessResources>("processResources") {
inputs.property("version", project.version)
filesMatching("fabric.mod.json") {
expand(
mutableMapOf(
"version" to project.version
)
)
}
}
11 changes: 0 additions & 11 deletions json-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,3 @@ application {
tasks.getByName<JavaExec>("run") {
workingDir = project.mkdir("run")
}

tasks.getByName<ProcessResources>("processResources") {
inputs.property("version", project.version)
filesMatching("fabric.mod.json") {
expand(
mutableMapOf(
"version" to project.version
)
)
}
}
8 changes: 3 additions & 5 deletions src/main/kotlin/juuxel/adorn/Adorn.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package juuxel.adorn

import juuxel.adorn.lib.ModBlocks
import juuxel.adorn.lib.ModGuis
import net.fabricmc.api.ClientModInitializer
import net.fabricmc.api.EnvType
import net.fabricmc.api.Environment
import net.fabricmc.api.ModInitializer
Expand All @@ -16,9 +15,8 @@ object Adorn : ModInitializer {
}

@Environment(EnvType.CLIENT)
object Client : ClientModInitializer {
override fun onInitializeClient() {
ModGuis.initClient()
}
@Suppress("UNUSED")
fun initClient() {
ModGuis.initClient()
}
}
2 changes: 1 addition & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
],
"client": [
{
"value": "juuxel.adorn.Adorn$Client",
"value": "juuxel.adorn.Adorn::initClient",
"adapter": "kotlin"
}
]
Expand Down

0 comments on commit 028b874

Please sign in to comment.