From 1ed71f5812cf8ef57bf713fc5c6d8f90379a3146 Mon Sep 17 00:00:00 2001 From: MrHua269 Date: Tue, 6 Aug 2024 17:55:23 +0800 Subject: [PATCH] Force disable builtin spark plugin --- ...1-Force-disable-builtin-spark-plugin.patch | 132 ++++++++++++++++++ ...aiiju-Don-t-pathfind-outside-region.patch} | 0 ...ju-Vanilla-end-portal-teleportation.patch} | 0 ...ch => 0024-Petal-Reduce-sensor-work.patch} | 0 ...ish-Improve-fluid-direction-caching.patch} | 0 ...Cache-climbing-check-for-activation.patch} | 0 ...erfish-Reduce-chunk-loading-lookups.patch} | 0 ...return-optimization-for-target-find.patch} | 0 ...per-6045-block-goal-shouldn-t-load-.patch} | 0 ...erfish-Skip-cloning-loot-parameters.patch} | 0 ...ish-Reduce-projectile-chunk-loading.patch} | 0 ...patch => 0032-Pufferfish-Entity-TTL.patch} | 0 ...ferfish-Dynamic-Activation-of-Brain.patch} | 0 ...heck-for-spooky-season-once-an-hour.patch} | 0 ...035-Pufferfish-Optimize-suffocation.patch} | 0 ...le-goal-selector-during-inactive-ti.patch} | 0 ...r-ShapelessRecipes-comparison-for-V.patch} | 0 ...h => 0038-Pufferfish-SIMD-Utilities.patch} | 0 ...le-Variable-entity-wake-up-duration.patch} | 0 ...=> 0040-Gale-Optimize-sun-burn-tick.patch} | 0 ...41-Gale-Use-platform-math-functions.patch} | 0 ...kip-entity-move-if-movement-is-zero.patch} | 0 ...0043-Gale-Optimize-noise-generation.patch} | 0 ...044-Gale-Faster-chunk-serialization.patch} | 0 ...a-and-Optional-allocation-in-Entity.patch} | 0 ...ttle-tracker-map-with-optimized-col.patch} | 0 ...parkly-Paper-Optimize-canSee-checks.patch} | 0 ...-MapItem-update-if-the-map-does-not.patch} | 0 ...-distanceToSqr-call-in-ServerEntity.patch} | 0 ...I-and-display-of-chunkhot-in-tpsbar.patch} | 2 +- ...1-Purpur-use-alternative-keep-alive.patch} | 0 ...052-Leaf-Skip-event-if-no-listeners.patch} | 0 ...-start-tick-and-finished-tick-event.patch} | 0 ...x-MC-2025.patch => 0054-Fix-MC-2025.patch} | 0 ...=> 0055-FoliaPR-Add-TPS-From-Region.patch} | 2 +- 35 files changed, 134 insertions(+), 2 deletions(-) create mode 100644 patches/server/0021-Force-disable-builtin-spark-plugin.patch rename patches/server/{0021-Kaiiju-Don-t-pathfind-outside-region.patch => 0022-Kaiiju-Don-t-pathfind-outside-region.patch} (100%) rename patches/server/{0022-Kaiiju-Vanilla-end-portal-teleportation.patch => 0023-Kaiiju-Vanilla-end-portal-teleportation.patch} (100%) rename patches/server/{0023-Petal-Reduce-sensor-work.patch => 0024-Petal-Reduce-sensor-work.patch} (100%) rename patches/server/{0024-Pufferfish-Improve-fluid-direction-caching.patch => 0025-Pufferfish-Improve-fluid-direction-caching.patch} (100%) rename patches/server/{0025-Pufferfish-Cache-climbing-check-for-activation.patch => 0026-Pufferfish-Cache-climbing-check-for-activation.patch} (100%) rename patches/server/{0026-Pufferfish-Reduce-chunk-loading-lookups.patch => 0027-Pufferfish-Reduce-chunk-loading-lookups.patch} (100%) rename patches/server/{0027-Pufferfish-Early-return-optimization-for-target-find.patch => 0028-Pufferfish-Early-return-optimization-for-target-find.patch} (100%) rename patches/server/{0028-Pufferfish-Fix-Paper-6045-block-goal-shouldn-t-load-.patch => 0029-Pufferfish-Fix-Paper-6045-block-goal-shouldn-t-load-.patch} (100%) rename patches/server/{0029-Pufferfish-Skip-cloning-loot-parameters.patch => 0030-Pufferfish-Skip-cloning-loot-parameters.patch} (100%) rename patches/server/{0030-Pufferfish-Reduce-projectile-chunk-loading.patch => 0031-Pufferfish-Reduce-projectile-chunk-loading.patch} (100%) rename patches/server/{0031-Pufferfish-Entity-TTL.patch => 0032-Pufferfish-Entity-TTL.patch} (100%) rename patches/server/{0032-Pufferfish-Dynamic-Activation-of-Brain.patch => 0033-Pufferfish-Dynamic-Activation-of-Brain.patch} (100%) rename patches/server/{0033-Pufferfish-Only-check-for-spooky-season-once-an-hour.patch => 0034-Pufferfish-Only-check-for-spooky-season-once-an-hour.patch} (100%) rename patches/server/{0034-Pufferfish-Optimize-suffocation.patch => 0035-Pufferfish-Optimize-suffocation.patch} (100%) rename patches/server/{0035-Pufferfish-Throttle-goal-selector-during-inactive-ti.patch => 0036-Pufferfish-Throttle-goal-selector-during-inactive-ti.patch} (100%) rename patches/server/{0036-Pufferfish-Simpler-ShapelessRecipes-comparison-for-V.patch => 0037-Pufferfish-Simpler-ShapelessRecipes-comparison-for-V.patch} (100%) rename patches/server/{0037-Pufferfish-SIMD-Utilities.patch => 0038-Pufferfish-SIMD-Utilities.patch} (100%) rename patches/server/{0038-Gale-Variable-entity-wake-up-duration.patch => 0039-Gale-Variable-entity-wake-up-duration.patch} (100%) rename patches/server/{0039-Gale-Optimize-sun-burn-tick.patch => 0040-Gale-Optimize-sun-burn-tick.patch} (100%) rename patches/server/{0040-Gale-Use-platform-math-functions.patch => 0041-Gale-Use-platform-math-functions.patch} (100%) rename patches/server/{0041-Gale-Skip-entity-move-if-movement-is-zero.patch => 0042-Gale-Skip-entity-move-if-movement-is-zero.patch} (100%) rename patches/server/{0042-Gale-Optimize-noise-generation.patch => 0043-Gale-Optimize-noise-generation.patch} (100%) rename patches/server/{0043-Gale-Faster-chunk-serialization.patch => 0044-Gale-Faster-chunk-serialization.patch} (100%) rename patches/server/{0044-Gale-Reduce-lambda-and-Optional-allocation-in-Entity.patch => 0045-Gale-Reduce-lambda-and-Optional-allocation-in-Entity.patch} (100%) rename patches/server/{0045-Gale-Replace-throttle-tracker-map-with-optimized-col.patch => 0046-Gale-Replace-throttle-tracker-map-with-optimized-col.patch} (100%) rename patches/server/{0046-Sparkly-Paper-Optimize-canSee-checks.patch => 0047-Sparkly-Paper-Optimize-canSee-checks.patch} (100%) rename patches/server/{0047-SparklyPaper-Skip-MapItem-update-if-the-map-does-not.patch => 0048-SparklyPaper-Skip-MapItem-update-if-the-map-does-not.patch} (100%) rename patches/server/{0048-SparklyPaper-Skip-distanceToSqr-call-in-ServerEntity.patch => 0049-SparklyPaper-Skip-distanceToSqr-call-in-ServerEntity.patch} (100%) rename patches/server/{0049-KioCG-Chunk-API-and-display-of-chunkhot-in-tpsbar.patch => 0050-KioCG-Chunk-API-and-display-of-chunkhot-in-tpsbar.patch} (99%) rename patches/server/{0050-Purpur-use-alternative-keep-alive.patch => 0051-Purpur-use-alternative-keep-alive.patch} (100%) rename patches/server/{0051-Leaf-Skip-event-if-no-listeners.patch => 0052-Leaf-Skip-event-if-no-listeners.patch} (100%) rename patches/server/{0052-Threaded-region-start-tick-and-finished-tick-event.patch => 0053-Threaded-region-start-tick-and-finished-tick-event.patch} (100%) rename patches/server/{0053-Fix-MC-2025.patch => 0054-Fix-MC-2025.patch} (100%) rename patches/server/{0054-FoliaPR-Add-TPS-From-Region.patch => 0055-FoliaPR-Add-TPS-From-Region.patch} (96%) diff --git a/patches/server/0021-Force-disable-builtin-spark-plugin.patch b/patches/server/0021-Force-disable-builtin-spark-plugin.patch new file mode 100644 index 0000000..2248ce4 --- /dev/null +++ b/patches/server/0021-Force-disable-builtin-spark-plugin.patch @@ -0,0 +1,132 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: MrHua269 +Date: Tue, 6 Aug 2024 17:53:07 +0800 +Subject: [PATCH] Force disable builtin spark plugin + + +diff --git a/src/main/java/io/papermc/paper/plugin/provider/source/FileProviderSource.java b/src/main/java/io/papermc/paper/plugin/provider/source/FileProviderSource.java +index 48604e7f96adc9e226e034054c5e2bad0b024eb5..99f0c1e4d3437154a1062b0a8f94b7a04dd935af 100644 +--- a/src/main/java/io/papermc/paper/plugin/provider/source/FileProviderSource.java ++++ b/src/main/java/io/papermc/paper/plugin/provider/source/FileProviderSource.java +@@ -88,7 +88,7 @@ public class FileProviderSource implements ProviderSource { + } + + final PluginMeta config = type.getConfig(file); +- if ((config.getName().equals("spark") && config.getMainClass().equals("me.lucko.spark.bukkit.BukkitSparkPlugin")) && !SparksFly.isPluginPreferred()) { ++ if ((config.getName().equals("spark") && config.getMainClass().equals("me.lucko.spark.bukkit.BukkitSparkPlugin")) && !SparksFly.isPluginPreferred() && false) { // Luminol - Force disable builtin spark + LOGGER.info("The spark plugin will not be loaded as this server bundles the spark profiler."); + return; + } +diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java +index 242d990c55ddd0629eb5e55a7c5c46d6d51beb17..39c5af1e3a4c2abbd02ccc3574d73aa06affcdf2 100644 +--- a/src/main/java/net/minecraft/server/MinecraftServer.java ++++ b/src/main/java/net/minecraft/server/MinecraftServer.java +@@ -778,8 +778,8 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop { + return scheduledEnd - System.nanoTime() > targetBuffer; + }; +- this.server.spark.tickStart(); // Paper - spark ++ if (false)this.server.spark.tickStart(); // Paper - spark // Luminol - Force disable builtin spark + new com.destroystokyo.paper.event.server.ServerTickStartEvent((int)region.getCurrentTick()).callEvent(); // Paper + // Folia end - region threading + co.aikar.timings.TimingsManager.FULL_SERVER_TICK.startTiming(); // Paper +@@ -1759,7 +1759,7 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop