diff --git a/build.gradle.kts b/build.gradle.kts index 1d76ae9..f167779 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -20,8 +20,8 @@ repositories { } val jdkVersion = property("jdkVersion").toString().toInt() -val projectName = property("projectName").toString() -val projectRepo = property("projectRepo").toString() +val projectName = property("brandName").toString() +val projectRepo = property("providerRepo").toString() val upstreamCommitValue = property("baseCommit").toString() val upstreamRef = "base" diff --git a/gradle.properties b/gradle.properties index 7912f8b..bacf589 100644 --- a/gradle.properties +++ b/gradle.properties @@ -8,11 +8,13 @@ paper.runMemoryGb = 8 paper.runDisableWatchdog = true group = org.plazmamc.thunderbolt -projectName = Thunderbolt -projectRepo = PlazmaMC/Thunderbolt +brandKey = plazmamc:thunderbolt +brandName = Thunderbolt +providerName = PlazmaMC +providerRepo = PlazmaMC/Thunderbolt version = 1.20.6-R0.1-SNAPSHOT mcVersion = 1.20.6 jdkVersion = 21 -baseCommit = 797e141efe4848d5353c40d670aed266f9239f0e +baseCommit = 7b82e6684308faa4ca5a2f748bdb7bdfe44808ff diff --git a/patches/api/0001-Remove-remaining-timings-implementations.patch b/patches/api/0001-Remove-remaining-timings-implementations.patch index 8a9e3e8..e70dd66 100644 --- a/patches/api/0001-Remove-remaining-timings-implementations.patch +++ b/patches/api/0001-Remove-remaining-timings-implementations.patch @@ -454,7 +454,7 @@ index a5d13a1e44edb861f45c83a9b4309fbf799d407d..00000000000000000000000000000000 -} diff --git a/src/main/java/co/aikar/timings/TimingHandler.java b/src/main/java/co/aikar/timings/TimingHandler.java deleted file mode 100644 -index 199789d56d22fcb1b77ebd56805cc28aa5a5ab0a..0000000000000000000000000000000000000000 +index 3b3bcfa6fa2dbcc7fef899cc7570da097437ab3a..0000000000000000000000000000000000000000 --- a/src/main/java/co/aikar/timings/TimingHandler.java +++ /dev/null @@ -1,226 +0,0 @@ @@ -587,7 +587,7 @@ index 199789d56d22fcb1b77ebd56805cc28aa5a5ab0a..00000000000000000000000000000000 - while ((last = TIMING_STACK.removeLast()) != this) { - last.timingDepth = 0; - if ("Minecraft".equalsIgnoreCase(last.identifier.group)) { -- Logger.getGlobal().log(Level.SEVERE, "TIMING_STACK_CORRUPTION - Look above this for any errors and report this to Paper unless it has a plugin in the stack trace (" + last.identifier + " did not stopTiming)"); +- Logger.getGlobal().log(Level.SEVERE, "TIMING_STACK_CORRUPTION - Look above this for any errors and report this to " + io.papermc.paper.ServerBuildInfo.buildInfo().brandName() + " unless it has a plugin in the stack trace (" + last.identifier + " did not stopTiming)"); - } else { - Logger.getGlobal().log(Level.SEVERE, "TIMING_STACK_CORRUPTION - Report this to the plugin " + last.identifier.group + " (Look for errors above this in the logs) (" + last.identifier + " did not stopTiming)", new Throwable()); - } @@ -1891,18 +1891,19 @@ index 632c4961515f5052551f841cfa840e60bba7a257..00000000000000000000000000000000 - } -} diff --git a/src/main/java/org/bukkit/UnsafeValues.java b/src/main/java/org/bukkit/UnsafeValues.java -index 0857a65ecbc36e0e4b8a7d0cda52be35f238f660..6178368dcf63504e3ae0e1f521ec2a16d6548ced 100644 +index 0e9ccfee7a03d341e7c4d271f53b4ed168b404ef..d133ddba0355835412dd16d2bf1a8b4b4ed00545 100644 --- a/src/main/java/org/bukkit/UnsafeValues.java +++ b/src/main/java/org/bukkit/UnsafeValues.java -@@ -40,7 +40,6 @@ public interface UnsafeValues { +@@ -40,7 +40,7 @@ public interface UnsafeValues { net.kyori.adventure.text.Component resolveWithContext(net.kyori.adventure.text.Component component, org.bukkit.command.CommandSender context, org.bukkit.entity.Entity scoreboardSubject, boolean bypassPermissions) throws java.io.IOException; // Paper end - void reportTimings(); // Paper ++ // void reportTimings(); // Paper // Thunderbolt - Remove remaining timings implementations Material toLegacy(Material material); Material fromLegacy(Material material); -@@ -154,7 +153,7 @@ public interface UnsafeValues { +@@ -154,7 +154,7 @@ public interface UnsafeValues { * Server name to report to timings v2 * @return name */ diff --git a/patches/server/0001-Remove-remaining-timings-implementations.patch b/patches/server/0001-Remove-remaining-timings-implementations.patch index 0cc074f..8dc02b2 100644 --- a/patches/server/0001-Remove-remaining-timings-implementations.patch +++ b/patches/server/0001-Remove-remaining-timings-implementations.patch @@ -780,7 +780,7 @@ index 4ad189d52b27560424ddb311d0817a334637dc95..f7e64bcd8810f7f5782d5314ec16290d } default: diff --git a/src/main/java/io/papermc/paper/configuration/GlobalConfiguration.java b/src/main/java/io/papermc/paper/configuration/GlobalConfiguration.java -index 8445a0b25d647b2c1f9a44f849084cdec0842e18..bf6233c3cee2554dd2970f3e5e7ad30aaef2fd96 100644 +index 86822868e47b269891a71fdc04371b1e28a2752e..723444f9ac1a61ee08d0e2425e338c529a63dc27 100644 --- a/src/main/java/io/papermc/paper/configuration/GlobalConfiguration.java +++ b/src/main/java/io/papermc/paper/configuration/GlobalConfiguration.java @@ -1,6 +1,6 @@ @@ -864,10 +864,10 @@ index 8c134a642ccaf3530022f2e675a858d726e1dda4..2cc6668b64c5e8ae3c39a934efae9593 packet.handle(listener); } catch (Exception exception) { diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java -index 72a8033f7a0f4c1564e05da31c7015ef2a6694c5..90d74011cd27f2ea151e9eb76675c30c822d8835 100644 +index cffcbc5db9593f69748d1c2d5a5687fa31f9ada5..e2370210d978c65c202bef43c8ed1170ab7905e0 100644 --- a/src/main/java/net/minecraft/server/MinecraftServer.java +++ b/src/main/java/net/minecraft/server/MinecraftServer.java -@@ -193,7 +193,7 @@ import org.bukkit.craftbukkit.Main; +@@ -190,7 +190,7 @@ import org.bukkit.craftbukkit.CraftRegistry; import org.bukkit.event.server.ServerLoadEvent; // CraftBukkit end @@ -876,7 +876,7 @@ index 72a8033f7a0f4c1564e05da31c7015ef2a6694c5..90d74011cd27f2ea151e9eb76675c30c public abstract class MinecraftServer extends ReentrantBlockableEventLoop implements ServerInfo, CommandSource, AutoCloseable { -@@ -990,7 +990,7 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop