diff --git a/platform/fabric/build.gradle.kts b/platform/fabric/build.gradle.kts index 95c89fc..b8b0f4c 100644 --- a/platform/fabric/build.gradle.kts +++ b/platform/fabric/build.gradle.kts @@ -1,3 +1,5 @@ +import net.fabricmc.loom.task.RemapJarTask + plugins { id("fabric-loom") version "1.4-SNAPSHOT" id("maven-publish") @@ -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. @@ -74,6 +81,11 @@ tasks.withType { } } +tasks.withType { + // 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. diff --git a/platform/fabric/libs/adventure-platform-fabric-5.9.1-PC.jar b/platform/fabric/libs/adventure-platform-fabric-5.9.1-PC.jar new file mode 100644 index 0000000..53a1ebc Binary files /dev/null and b/platform/fabric/libs/adventure-platform-fabric-5.9.1-PC.jar differ