mirror of
https://github.com/YatopiaMC/Yatopia.git
synced 2024-12-28 03:57:42 +01:00
26 lines
1.2 KiB
Diff
26 lines
1.2 KiB
Diff
From ba093bacd8385828644662b4da96ec7b57bed9ab Mon Sep 17 00:00:00 2001
|
|
From: William Blake Galbreath <blake.galbreath@gmail.com>
|
|
Date: Tue, 4 Jun 2019 15:50:08 -0500
|
|
Subject: [PATCH] Purpur Fix 'outdated server' showing in ping before server
|
|
fully boots
|
|
|
|
---
|
|
src/main/java/net/minecraft/server/PacketStatusListener.java | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/PacketStatusListener.java b/src/main/java/net/minecraft/server/PacketStatusListener.java
|
|
index 4bb21c48b..30f16db02 100644
|
|
--- a/src/main/java/net/minecraft/server/PacketStatusListener.java
|
|
+++ b/src/main/java/net/minecraft/server/PacketStatusListener.java
|
|
@@ -135,6 +135,7 @@ public class PacketStatusListener implements PacketStatusInListener {
|
|
|
|
this.networkManager.sendPacket(new PacketStatusOutServerInfo(ping));
|
|
*/
|
|
+ if (this.minecraftServer.getServerPing().getServerData() == null) return; // Purpur - do not respond to pings before we know the protocol version
|
|
com.destroystokyo.paper.network.StandardPaperServerListPingEventImpl.processRequest(this.minecraftServer, this.networkManager);
|
|
// Paper end
|
|
}
|
|
--
|
|
2.25.1.windows.1
|
|
|