From 243ebd8d3ba7084a4b3a60013ae1b0ddca643812 Mon Sep 17 00:00:00 2001 From: Telesphoreo Date: Tue, 19 Apr 2022 18:21:18 -0500 Subject: [PATCH] changes i think --- build.gradle.kts | 16 +++-------- gradle.properties | 6 ++-- patches/server/0001-Build-changes.patch | 37 ++++++++++++------------- 3 files changed, 25 insertions(+), 34 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 0a970c6..2a68049 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -4,28 +4,20 @@ plugins { java `maven-publish` id("com.github.johnrengelman.shadow") version "7.1.2" apply false - id("io.papermc.paperweight.patcher") version "1.2.0" + id("io.papermc.paperweight.patcher") version "1.3.4" } -val spigotDecompiler: Configuration by configurations.creating - repositories { mavenCentral() maven("https://papermc.io/repo/repository/maven-public/") { - content { - onlyForConfigurations( - configurations.paperclip.name, - spigotDecompiler.name, - ) - } + content { onlyForConfigurations(PAPERCLIP_CONFIG) } } } dependencies { remapper("net.fabricmc:tiny-remapper:0.8.1:fat") decompiler("net.minecraftforge:forgeflower:1.5.498.22") - spigotDecompiler("io.papermc:patched-spigot-fernflower:0.1+build.4") - paperclip("io.papermc:paperclip:2.0.1") + paperclip("io.papermc:paperclip:3.0.2") } allprojects { @@ -72,4 +64,4 @@ paperweight { serverOutputDir.set(layout.projectDirectory.dir("Scissors-Server")) } } -} +} \ No newline at end of file diff --git a/gradle.properties b/gradle.properties index 1f3d17f..0e849a2 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,8 +1,8 @@ group=me.totalfreedom.scissors -version=1.17.1-R0.1-SNAPSHOT +version=1.18.2-R0.1-SNAPSHOT -mcVersion=1.17.1 -paperRef=6625db387ea9fe5296a6c6f984975b387c3089f0 +mcVersion=1.18.2 +paperRef=c642d25f6373ab1c65273d8a607ebd5c140a6b04 org.gradle.caching=true org.gradle.parallel=true diff --git a/patches/server/0001-Build-changes.patch b/patches/server/0001-Build-changes.patch index 50af7cd..141aa73 100644 --- a/patches/server/0001-Build-changes.patch +++ b/patches/server/0001-Build-changes.patch @@ -1,47 +1,46 @@ From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 -From: Luna -Date: Sat, 12 Mar 2022 22:22:22 -0300 +From: Telesphoreo +Date: Tue, 19 Apr 2022 18:17:43 -0500 Subject: [PATCH] Build changes diff --git a/build.gradle.kts b/build.gradle.kts -index c236fe5dc388f8bc0a929f1de04af94c63514208..c7c8b00a34cbc39f1003b618097bc1e2858823a1 100644 +index dd8f449dddbe0838835ae8f8d5033aa422db403d..bcada100f0938cfae54734582a86f4c1787e91b5 100644 --- a/build.gradle.kts +++ b/build.gradle.kts -@@ -13,8 +13,8 @@ plugins { +@@ -9,8 +9,7 @@ plugins { } dependencies { -- implementation(project(":Paper-API")) -- implementation(project(":Paper-MojangAPI")) -+ implementation(project(":Scissors-API")) // Scissors -+ implementation("io.papermc.paper:paper-mojangapi:1.17.1-R0.1-SNAPSHOT") // Scissors +- implementation(project(":paper-api")) +- implementation(project(":paper-mojangapi")) ++ implementation("io.papermc.paper:paper-mojangapi:1.18.2-R0.1-SNAPSHOT") // Scissors // Paper start implementation("org.jline:jline-terminal-jansi:3.21.0") implementation("net.minecrell:terminalconsoleappender:1.3.0") -@@ -66,7 +66,7 @@ tasks.jar { +@@ -59,7 +58,7 @@ tasks.jar { attributes( "Main-Class" to "org.bukkit.craftbukkit.Main", "Implementation-Title" to "CraftBukkit", - "Implementation-Version" to "git-Paper-$implementationVersion", -+ "Implementation-Version" to "git-Scissors-$implementationVersion", // Scissors ++ "Implementation-Version" to "git-Scissors-$implementationVersion", "Implementation-Vendor" to date, // Paper "Specification-Title" to "Bukkit", "Specification-Version" to project.version, -@@ -193,7 +193,7 @@ tasks.test { - fun TaskContainer.registerRunTask( - name: String, block: JavaExec.() -> Unit +@@ -147,7 +146,7 @@ fun TaskContainer.registerRunTask( + name: String, + block: JavaExec.() -> Unit ): TaskProvider = register(name) { - group = "paper" + group = "paperweight" + mainClass.set("org.bukkit.craftbukkit.Main") standardInput = System.`in` - workingDir = rootProject.layout.projectDirectory.dir( - providers.gradleProperty("runWorkDir").forUseAtConfigurationTime().orElse("run") + workingDir = rootProject.layout.projectDirectory diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java -index 8091a901106a1085da9dfd8627dadcbe50f00872..e6da0f7e755e6b0225afbced2c7a14e9df83b09d 100644 +index c8d56947305c981a3268ce4ae3e975db350ceff2..f0ed55e2d9e1c1e3ba27bf675490c57d961ff7f5 100644 --- a/src/main/java/net/minecraft/server/MinecraftServer.java +++ b/src/main/java/net/minecraft/server/MinecraftServer.java -@@ -1729,7 +1729,7 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop