diff options
author | Jake <[email protected]> | 2021-11-29 23:32:30 -0800 |
---|---|---|
committer | MiniDigger | Martin <[email protected]> | 2021-11-30 19:26:33 +0100 |
commit | d8d7f523247bc84ecaedccf2bae29da4c18af4f2 (patch) | |
tree | b1695d85949cde1da6d3d1562f494f1fc74d863f /patches/server/0334-Expose-the-internal-current-tick.patch | |
parent | 5ff792342c3a80ac8044340ac1e44c763ed38f1d (diff) | |
download | Paper-d8d7f523247bc84ecaedccf2bae29da4c18af4f2.tar.gz Paper-d8d7f523247bc84ecaedccf2bae29da4c18af4f2.zip |
another patch
Diffstat (limited to 'patches/server/0334-Expose-the-internal-current-tick.patch')
-rw-r--r-- | patches/server/0334-Expose-the-internal-current-tick.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/patches/server/0334-Expose-the-internal-current-tick.patch b/patches/server/0334-Expose-the-internal-current-tick.patch new file mode 100644 index 0000000000..075b596ba7 --- /dev/null +++ b/patches/server/0334-Expose-the-internal-current-tick.patch @@ -0,0 +1,21 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: William Blake Galbreath <[email protected]> +Date: Sat, 20 Apr 2019 19:47:34 -0500 +Subject: [PATCH] Expose the internal current tick + + +diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java +index 634c50378d860808081868b2d20145d3b01259a7..8d1cbefc82f64a120eeea8c6bdd6361ffa513099 100644 +--- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java ++++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java +@@ -2588,5 +2588,10 @@ public final class CraftServer implements Server { + } + return new com.destroystokyo.paper.profile.CraftPlayerProfile(uuid, name); + } ++ ++ @Override ++ public int getCurrentTick() { ++ return net.minecraft.server.MinecraftServer.currentTick; ++ } + // Paper end + } |