From a4852d7264497343216167588303337491ca490d Mon Sep 17 00:00:00 2001 From: Daniel Naylor Date: Sat, 24 Nov 2018 22:29:46 +0000 Subject: [PATCH] Silly me... --- .../proxy/connection/client/ConnectedPlayer.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/proxy/src/main/java/com/velocitypowered/proxy/connection/client/ConnectedPlayer.java b/proxy/src/main/java/com/velocitypowered/proxy/connection/client/ConnectedPlayer.java index 35f4bc7f7..ea71285eb 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/connection/client/ConnectedPlayer.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/connection/client/ConnectedPlayer.java @@ -67,7 +67,6 @@ public class ConnectedPlayer implements MinecraftConnectionAssociation, Player { c -> "", TranslatableComponent::key); static final PermissionProvider DEFAULT_PERMISSIONS = s -> PermissionFunction.ALWAYS_UNDEFINED; - private static final ThreadLocalRandom threadLocalRandom = ThreadLocalRandom.current(); private static final Logger logger = LogManager.getLogger(ConnectedPlayer.class); private final MinecraftConnection connection; @@ -479,7 +478,7 @@ public class ConnectedPlayer implements MinecraftConnectionAssociation, Player { public void sendKeepAlive() { if (connection.getState() == StateRegistry.PLAY) { KeepAlive keepAlive = new KeepAlive(); - keepAlive.setRandomId(threadLocalRandom.nextLong()); + keepAlive.setRandomId(ThreadLocalRandom.current().nextLong()); connection.write(keepAlive); } }