diff --git a/leaf-server/minecraft-patches/features/0125-Redirect-vanilla-getProfiler-to-inactive-in-PathNavi.patch b/leaf-server/minecraft-patches/features/0125-Redirect-vanilla-getProfiler-to-inactive-in-PathNavi.patch deleted file mode 100644 index a42381f0..00000000 --- a/leaf-server/minecraft-patches/features/0125-Redirect-vanilla-getProfiler-to-inactive-in-PathNavi.patch +++ /dev/null @@ -1,23 +0,0 @@ -From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 -From: Dreeam <61569423+Dreeam-qwq@users.noreply.github.com> -Date: Mon, 19 Feb 2024 13:10:16 -0500 -Subject: [PATCH] Redirect vanilla getProfiler to inactive in - PathNavigationRegion - -To fix compatibility with some plugins, e.g. Citizens, ModelEngine, etc. - -diff --git a/net/minecraft/world/level/PathNavigationRegion.java b/net/minecraft/world/level/PathNavigationRegion.java -index 21dee87c792dcba52d9dff637e4729a2ec377ac0..89571b56618ad83b8fd1c218f0f2bb0a72ea3d49 100644 ---- a/net/minecraft/world/level/PathNavigationRegion.java -+++ b/net/minecraft/world/level/PathNavigationRegion.java -@@ -153,4 +153,10 @@ public class PathNavigationRegion implements CollisionGetter { - public int getHeight() { - return this.level.getHeight(); - } -+ -+ // Leaf start - Redirect vanilla getProfiler to inactive in PathNavigationRegion -+ public net.minecraft.util.profiling.ProfilerFiller getProfiler() { -+ return net.minecraft.util.profiling.InactiveProfiler.INSTANCE; // Gale - Purpur - remove vanilla profiler -+ } -+ // Leaf end - Redirect vanilla getProfiler to inactive in PathNavigationRegion - } diff --git a/leaf-server/minecraft-patches/features/0126-Remove-useless-creating-stats-json-bases-on-player-n.patch b/leaf-server/minecraft-patches/features/0125-Remove-useless-creating-stats-json-bases-on-player-n.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0126-Remove-useless-creating-stats-json-bases-on-player-n.patch rename to leaf-server/minecraft-patches/features/0125-Remove-useless-creating-stats-json-bases-on-player-n.patch diff --git a/leaf-server/minecraft-patches/features/0127-Improve-Purpur-AFK-system.patch b/leaf-server/minecraft-patches/features/0126-Improve-Purpur-AFK-system.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0127-Improve-Purpur-AFK-system.patch rename to leaf-server/minecraft-patches/features/0126-Improve-Purpur-AFK-system.patch diff --git a/leaf-server/minecraft-patches/features/0128-Virtual-thread-for-chat-executor.patch b/leaf-server/minecraft-patches/features/0127-Virtual-thread-for-chat-executor.patch similarity index 94% rename from leaf-server/minecraft-patches/features/0128-Virtual-thread-for-chat-executor.patch rename to leaf-server/minecraft-patches/features/0127-Virtual-thread-for-chat-executor.patch index a158f225..c011f87c 100644 --- a/leaf-server/minecraft-patches/features/0128-Virtual-thread-for-chat-executor.patch +++ b/leaf-server/minecraft-patches/features/0127-Virtual-thread-for-chat-executor.patch @@ -5,7 +5,7 @@ Subject: [PATCH] Virtual thread for chat executor diff --git a/net/minecraft/server/MinecraftServer.java b/net/minecraft/server/MinecraftServer.java -index 9da4c27c7d0b6c0d328d592aa78eac1d073eb1fe..07c371c4d65b4fec7b9701a7de62f18399d80df0 100644 +index 827c6e053022b29dc79cb3f779432aa567c16819..bc643159911320de9d8f6b88e23db93a2b192ea6 100644 --- a/net/minecraft/server/MinecraftServer.java +++ b/net/minecraft/server/MinecraftServer.java @@ -2650,7 +2650,7 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop diff --git a/net/minecraft/server/level/ServerLevel.java b/net/minecraft/server/level/ServerLevel.java -index 5178290d060dd8a72f0e6cb77f77d19683a866d0..c5fea3948be691c42e9a94ddb0acd04fcc0b4415 100644 +index 0ed24644e07c409a3624614d3bab1797b44f7ae2..c3f49ed4a09517e6a03decece32a91def865a778 100644 --- a/net/minecraft/server/level/ServerLevel.java +++ b/net/minecraft/server/level/ServerLevel.java @@ -1096,6 +1096,7 @@ public class ServerLevel extends Level implements ServerEntityGetter, WorldGenLe diff --git a/leaf-server/minecraft-patches/features/0296-optimize-tickEffects.patch b/leaf-server/minecraft-patches/features/0295-optimize-tickEffects.patch similarity index 94% rename from leaf-server/minecraft-patches/features/0296-optimize-tickEffects.patch rename to leaf-server/minecraft-patches/features/0295-optimize-tickEffects.patch index fc459616..1a16129d 100644 --- a/leaf-server/minecraft-patches/features/0296-optimize-tickEffects.patch +++ b/leaf-server/minecraft-patches/features/0295-optimize-tickEffects.patch @@ -5,7 +5,7 @@ Subject: [PATCH] optimize tickEffects diff --git a/net/minecraft/world/entity/LivingEntity.java b/net/minecraft/world/entity/LivingEntity.java -index 8baa17d2eadfa83b1fcb36fcd1408e917b883989..1799cdc0b6c1e585e7e1eeab3828ea0252ae2097 100644 +index 179722eb09e3c48220ec7d7a25332a000faf710c..f2717e7c173463659dffdd223b9b2e0c9cf5c636 100644 --- a/net/minecraft/world/entity/LivingEntity.java +++ b/net/minecraft/world/entity/LivingEntity.java @@ -950,6 +950,7 @@ public abstract class LivingEntity extends Entity implements Attackable, Waypoin diff --git a/leaf-server/minecraft-patches/features/0297-Pluto-Expose-Direction-Plane-s-faces.patch b/leaf-server/minecraft-patches/features/0296-Pluto-Expose-Direction-Plane-s-faces.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0297-Pluto-Expose-Direction-Plane-s-faces.patch rename to leaf-server/minecraft-patches/features/0296-Pluto-Expose-Direction-Plane-s-faces.patch diff --git a/leaf-server/minecraft-patches/features/0298-Pluto-reduce-allocation.patch b/leaf-server/minecraft-patches/features/0297-Pluto-reduce-allocation.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0298-Pluto-reduce-allocation.patch rename to leaf-server/minecraft-patches/features/0297-Pluto-reduce-allocation.patch diff --git a/leaf-server/minecraft-patches/features/0299-Only-update-frozen-ticks-if-changed.patch b/leaf-server/minecraft-patches/features/0298-Only-update-frozen-ticks-if-changed.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0299-Only-update-frozen-ticks-if-changed.patch rename to leaf-server/minecraft-patches/features/0298-Only-update-frozen-ticks-if-changed.patch diff --git a/leaf-server/minecraft-patches/features/0300-Prevent-executing-commands-if-server-stopped.patch b/leaf-server/minecraft-patches/features/0299-Prevent-executing-commands-if-server-stopped.patch similarity index 100% rename from leaf-server/minecraft-patches/features/0300-Prevent-executing-commands-if-server-stopped.patch rename to leaf-server/minecraft-patches/features/0299-Prevent-executing-commands-if-server-stopped.patch