perf(bukkit): 优化 gui 按钮声音播放代码

This commit is contained in:
2023-01-22 01:57:24 +08:00
parent 6eafc62f50
commit 7797a95d89
2 changed files with 17 additions and 8 deletions

View File

@@ -14,7 +14,7 @@ dependencies {
exclude group: "com.google.code.gson"
}
shade 'net.kyori:adventure-platform-bukkit:4.1.2'
// shade 'net.kyori:adventure-platform-bukkit:4.1.2'
compileOnly('net.milkbowl.vault:VaultAPI:1.7') { transitive = false }
compileOnly('org.black_ixx:playerpoints:2.1.3') { transitive = false }
compileOnly("com.comphenix.protocol:ProtocolLib-API:4.4.0") { transitive = false }
@@ -43,7 +43,7 @@ processResources {
}
tasks.compileJava.dependsOn(":hamster-core-common:build")
tasks.create("shadowJar", Jar) {
tasks.register("shadowJar", Jar) {
dependsOn("jar")
from([
tasks.jar.outputs.files.collect {
@@ -57,7 +57,7 @@ tasks.create("shadowJar", Jar) {
}
tasks.build.dependsOn(shadowJar)
tasks.create("oldJar", Jar) {
tasks.register("oldJar", Jar) {
dependsOn("jar")
setClassifier("Old")
from([