diff options
Diffstat (limited to 'Spigot-Server-Patches/0372-Server-Tick-Events.patch')
-rw-r--r-- | Spigot-Server-Patches/0372-Server-Tick-Events.patch | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Spigot-Server-Patches/0372-Server-Tick-Events.patch b/Spigot-Server-Patches/0372-Server-Tick-Events.patch index 1e98c90be3..9e8f3e1ffb 100644 --- a/Spigot-Server-Patches/0372-Server-Tick-Events.patch +++ b/Spigot-Server-Patches/0372-Server-Tick-Events.patch @@ -1,4 +1,4 @@ -From e22bb304de24d0f80e9884d55d88b271e78d404f Mon Sep 17 00:00:00 2001 +From ff943edcb4161947dfae5545652ab4b9c2415a9a Mon Sep 17 00:00:00 2001 From: Aikar <[email protected]> Date: Wed, 27 Mar 2019 22:48:45 -0400 Subject: [PATCH] Server Tick Events @@ -6,18 +6,18 @@ Subject: [PATCH] Server Tick Events Fires event at start and end of a server tick diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java -index aec871dd24..35c5d38c21 100644 +index a7b63ab421..24dccfb7a1 100644 --- a/src/main/java/net/minecraft/server/MinecraftServer.java +++ b/src/main/java/net/minecraft/server/MinecraftServer.java -@@ -1055,6 +1055,7 @@ public abstract class MinecraftServer extends IAsyncTaskHandlerReentrant<TickTas - co.aikar.timings.TimingsManager.FULL_SERVER_TICK.startTiming(); // Paper +@@ -1072,6 +1072,7 @@ public abstract class MinecraftServer extends IAsyncTaskHandlerReentrant<TickTas + // Paper end this.slackActivityAccountant.tickStarted(); // Spigot long i = SystemUtils.getMonotonicNanos(); + new com.destroystokyo.paper.event.server.ServerTickStartEvent(this.ticks+1).callEvent(); // Paper ++this.ticks; this.b(booleansupplier); -@@ -1106,6 +1107,11 @@ public abstract class MinecraftServer extends IAsyncTaskHandlerReentrant<TickTas +@@ -1123,6 +1124,11 @@ public abstract class MinecraftServer extends IAsyncTaskHandlerReentrant<TickTas this.executeAll(); } // Paper end @@ -30,5 +30,5 @@ index aec871dd24..35c5d38c21 100644 } -- -2.22.0 +2.22.1 |