fix: update paths for Hytale server and assets in build configuration
Adjusted the paths in build.gradle.kts to reference the correct locations for HytaleServer.jar and Assets.zip. Updated README to reflect changes in the server's mods folder instead of plugins folder for clarity.
This commit is contained in:
@@ -60,7 +60,7 @@ open class RunServerTask : DefaultTask() {
|
||||
fun run() {
|
||||
// Create directories
|
||||
val runDir = File(project.projectDir, "run").apply { mkdirs() }
|
||||
val pluginsDir = File(runDir, "plugins").apply { mkdirs() }
|
||||
val pluginsDir = File(runDir, "mods").apply { mkdirs() }
|
||||
val jarFile = File(runDir, "server.jar")
|
||||
|
||||
// Cache directory for downloaded server JARs
|
||||
@@ -107,7 +107,7 @@ open class RunServerTask : DefaultTask() {
|
||||
// Copy server JAR to run directory
|
||||
cachedJar.copyTo(jarFile, overwrite = true)
|
||||
|
||||
// Copy plugin JAR to plugins folder
|
||||
// Copy plugin JAR to mods folder
|
||||
project.tasks.findByName("shadowJar")?.outputs?.files?.firstOrNull()?.let { shadowJar ->
|
||||
val targetFile = File(pluginsDir, shadowJar.name)
|
||||
shadowJar.copyTo(targetFile, overwrite = true)
|
||||
|
||||
Reference in New Issue
Block a user