From c90a977ab2142367d75d4b966511c26b4e1fca2d Mon Sep 17 00:00:00 2001 From: D4rkr34lm Date: Fri, 1 May 2026 11:02:33 +0200 Subject: [PATCH] use same hacky impl as in fight system --- SchematicSystem/SchematicSystem_21/build.gradle.kts | 7 ++++++- settings.gradle.kts | 1 - 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/SchematicSystem/SchematicSystem_21/build.gradle.kts b/SchematicSystem/SchematicSystem_21/build.gradle.kts index b9bfe6c9..2654c5b7 100644 --- a/SchematicSystem/SchematicSystem_21/build.gradle.kts +++ b/SchematicSystem/SchematicSystem_21/build.gradle.kts @@ -25,7 +25,12 @@ dependencies { compileOnly(project(":SpigotCore", "default")) compileOnly(project(":SchematicSystem:SchematicSystem_Core", "default")) - compileOnly(libs.spigotapi21) + compileOnly(libs.paperapi21) { + attributes { + // Very Hacky, but it works + attribute(TargetJvmVersion.TARGET_JVM_VERSION_ATTRIBUTE, 21) + } + } compileOnly(libs.nms21) compileOnly(libs.fawe21) diff --git a/settings.gradle.kts b/settings.gradle.kts index 9b228792..ea47eac1 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -103,7 +103,6 @@ dependencyResolutionManagement { library("spigotapi", "org.spigotmc:spigot-api:1.20-R0.1-SNAPSHOT") - library("spigotapi21", "org.spigotmc:spigot-api:1.21-R0.1-SNAPSHOT") library("spigotannotations", "org.spigotmc:plugin-annotations:1.2.3-SNAPSHOT") library("paperapi", "io.papermc.paper:paper-api:1.19.2-R0.1-SNAPSHOT") library("paperapi21", "io.papermc.paper:paper-api:1.21.6-R0.1-SNAPSHOT")