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
|
2024-01-14 10:46:04 +01:00
|
|
|
index 04ff773b84eb8870d77b09e25ab72e5a887774d4..4b57573660f5d806973edb5a66a0ac183c40c19e 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
|
2024-01-14 10:46:04 +01:00
|
|
|
@@ -2853,5 +2853,10 @@ public final class CraftServer implements Server {
|
2023-10-05 07:31:24 +02:00
|
|
|
profile.getProperties().putAll(((CraftPlayer) player).getHandle().getGameProfile().getProperties());
|
2022-03-19 14:39:38 +01:00
|
|
|
return new com.destroystokyo.paper.profile.CraftPlayerProfile(profile);
|
2021-06-11 14:02:28 +02:00
|
|
|
}
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public int getCurrentTick() {
|
|
|
|
+ return net.minecraft.server.MinecraftServer.currentTick;
|
|
|
|
+ }
|
|
|
|
// Paper end
|
|
|
|
}
|