2021-06-11 14:02:28 +02:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: William Blake Galbreath <blake.galbreath@gmail.com>
|
|
|
|
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
|
2021-08-25 09:59:26 +02:00
|
|
|
index fbb4177c4ca094f93adb99c9a69258535053cbb7..de6ae7b2078c0ca5e64bcdfe3a6957c2c6436977 100644
|
2021-06-11 14:02:28 +02:00
|
|
|
--- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java
|
|
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
|
2021-08-25 09:59:26 +02:00
|
|
|
@@ -2505,5 +2505,10 @@ public final class CraftServer implements Server {
|
2021-06-11 14:02:28 +02:00
|
|
|
}
|
|
|
|
return new com.destroystokyo.paper.profile.CraftPlayerProfile(uuid, name);
|
|
|
|
}
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public int getCurrentTick() {
|
|
|
|
+ return net.minecraft.server.MinecraftServer.currentTick;
|
|
|
|
+ }
|
|
|
|
// Paper end
|
|
|
|
}
|