mirror of
https://github.com/YatopiaMC/Yatopia.git
synced 2024-08-25 15:22:47 +02:00
26 lines
1.2 KiB
Diff
26 lines
1.2 KiB
Diff
From 5b5081e34a823b163778744944f703e0bf16c08b 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 4bb21c48bd..30f16db02c 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
|
|
|