Skip to content

Commit

Permalink
PC-1074 (fix): adventure server issues
Browse files Browse the repository at this point in the history
  • Loading branch information
LoboMetalurgico committed Feb 5, 2024
1 parent 6a0bea2 commit 4c77438
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion platform/fabric/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import net.fabricmc.loom.task.RemapJarTask

plugins {
id("fabric-loom") version "1.4-SNAPSHOT"
id("maven-publish")
Expand Down Expand Up @@ -42,7 +44,12 @@ dependencies {
// Fabric API. This is technically optional, but you probably want it anyway.
modImplementation("net.fabricmc.fabric-api:fabric-api:$fabricVersion")
modImplementation("net.fabricmc:fabric-language-kotlin:$fabricKotlinVersion")
modImplementation(include("net.kyori:adventure-platform-fabric:5.9.0")!!)

// Broken in server, but necessary for IDE to work (our jar, for some reason, isn't accepted by modImplementation)
modImplementation("net.kyori:adventure-platform-fabric:5.9.0")
// Custom version that backports the fix (runtime only, since in IDE we use the default version)
modRuntimeOnly(files("libs/adventure-platform-fabric-5.9.1-PC.jar"))

// Uncomment the following line to enable the deprecated Fabric API modules.
// These are included in the Fabric API production distribution and allow you to update your mod to the latest modules at a later more convenient time.

Expand Down Expand Up @@ -74,6 +81,11 @@ tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
}
}

tasks.withType<RemapJarTask> {
// Include the adventure-platform-fabric jar in the remapped jar (include task only works with maven dependency)
nestedJars.from(files("libs/adventure-platform-fabric-5.9.1-PC.jar"))
}

java {
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
// if it is present.
Expand Down
Binary file not shown.

0 comments on commit 4c77438

Please sign in to comment.