Skip to content

Commit

Permalink
fix issue in helper plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Minecraftschurli committed Feb 17, 2024
1 parent ef12034 commit faefc30
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,6 @@ open class HelperExtension @Inject constructor(private val project: Project) {
project.runs {
configureEach {
workingDirectory.set(project.layout.projectDirectory.dir("run"))
if (name != "data") {
systemProperties.put("forge.enabledGameTestNamespaces", projectId)
}
systemProperties.put("forge.logging.markers", "REGISTRIES")
systemProperties.put("forge.logging.console.level", "debug")
modSources.add(project.sourceSets.main)
Expand Down Expand Up @@ -262,10 +259,14 @@ open class HelperExtension @Inject constructor(private val project: Project) {
}

fun withGameTestRuns() {
project.runs.create("gameTestServer") {
if (::testSourceSet.isInitialized) {
modSource(testSourceSet)
project.runs.configureEach {
if (name != "data") {
systemProperties.put("forge.enabledGameTestNamespaces", projectId)
if (::testSourceSet.isInitialized) {
modSource(testSourceSet)
}
}
}
project.runs.create("gameTestServer")
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.github.minecraftschurlimods.helperplugin

import com.akuleshov7.ktoml.annotations.TomlMultiline
import kotlinx.serialization.Serializable
import kotlinx.serialization.SerialName


Expand Down

0 comments on commit faefc30

Please sign in to comment.