diff --git a/patches/api/0495-API-to-check-if-the-server-is-sleeping.patch b/patches/api/0496-API-to-check-if-the-server-is-sleeping.patch similarity index 100% rename from patches/api/0495-API-to-check-if-the-server-is-sleeping.patch rename to patches/api/0496-API-to-check-if-the-server-is-sleeping.patch diff --git a/patches/server/1064-API-to-check-if-the-server-is-sleeping.patch b/patches/server/1065-API-to-check-if-the-server-is-sleeping.patch similarity index 51% rename from patches/server/1064-API-to-check-if-the-server-is-sleeping.patch rename to patches/server/1065-API-to-check-if-the-server-is-sleeping.patch index 776845d37143e..2a49010d6abf2 100644 --- a/patches/server/1064-API-to-check-if-the-server-is-sleeping.patch +++ b/patches/server/1065-API-to-check-if-the-server-is-sleeping.patch @@ -5,40 +5,23 @@ Subject: [PATCH] API to check if the server is sleeping diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java -index 64b56abf8900d0424100da460fc68ac964394793..176d668a84ae63d6fc1d8af444fd9e5e1361188c 100644 +index 64b56abf8900d0424100da460fc68ac964394793..6fe7557747a2ef888646fdb7c83ea17e7551c704 100644 --- a/src/main/java/net/minecraft/server/MinecraftServer.java +++ b/src/main/java/net/minecraft/server/MinecraftServer.java -@@ -332,6 +332,7 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop S spin(Function serverFactory) { - AtomicReference atomicreference = new AtomicReference(); -@@ -1614,9 +1615,11 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop= this.pauseWhileEmptySeconds() * 20; } + // Paper end - API to check if the server is sleeping public void tickServer(BooleanSupplier shouldKeepTicking) { org.spigotmc.WatchdogThread.tick(); // Spigot -@@ -1634,6 +1637,7 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop