Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix adventure server issues (PC-1074) #5

Merged
merged 3 commits into from
Feb 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)
modLocalRuntime(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.
Loading