diff options
author | Jason Penilla <[email protected]> | 2024-05-06 22:54:17 -0700 |
---|---|---|
committer | Jason Penilla <[email protected]> | 2024-05-06 22:54:17 -0700 |
commit | 5f2a82aec92e5d0e8ddffb0948ceddc95b6896a8 (patch) | |
tree | 27902ab194a88b082a5037096b006c686e7fb07e /patches/server/0254-Configurable-connection-throttle-kick-message.patch | |
parent | ac3a5471c8dcdc1d0431025781da1d524895c47a (diff) | |
download | Paper-fix-ping-event.tar.gz Paper-fix-ping-event.zip |
Fix ping event always receiving protocol version 0fix-ping-event
Diffstat (limited to 'patches/server/0254-Configurable-connection-throttle-kick-message.patch')
-rw-r--r-- | patches/server/0254-Configurable-connection-throttle-kick-message.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/patches/server/0254-Configurable-connection-throttle-kick-message.patch b/patches/server/0254-Configurable-connection-throttle-kick-message.patch index 45bfe1972e..4da61fc469 100644 --- a/patches/server/0254-Configurable-connection-throttle-kick-message.patch +++ b/patches/server/0254-Configurable-connection-throttle-kick-message.patch @@ -5,10 +5,10 @@ Subject: [PATCH] Configurable connection throttle kick message diff --git a/src/main/java/net/minecraft/server/network/ServerHandshakePacketListenerImpl.java b/src/main/java/net/minecraft/server/network/ServerHandshakePacketListenerImpl.java -index 644214cc3a3c8e560b6ce470fe5997e3c10a2e3d..bc15794e0a3909ab9ceeded35158bea4c23fb45a 100644 +index 65333e0244d7c3c415266f1740929761ca890af7..f9314bee1ed9b0e4c4591c0acf8a305721765850 100644 --- a/src/main/java/net/minecraft/server/network/ServerHandshakePacketListenerImpl.java +++ b/src/main/java/net/minecraft/server/network/ServerHandshakePacketListenerImpl.java -@@ -82,7 +82,7 @@ public class ServerHandshakePacketListenerImpl implements ServerHandshakePacketL +@@ -86,7 +86,7 @@ public class ServerHandshakePacketListenerImpl implements ServerHandshakePacketL synchronized (ServerHandshakePacketListenerImpl.throttleTracker) { if (ServerHandshakePacketListenerImpl.throttleTracker.containsKey(address) && !"127.0.0.1".equals(address.getHostAddress()) && currentTime - ServerHandshakePacketListenerImpl.throttleTracker.get(address) < connectionThrottle) { ServerHandshakePacketListenerImpl.throttleTracker.put(address, currentTime); |