mirror of
https://github.com/YatopiaMC/Yatopia.git
synced 2024-08-25 07:12:47 +02:00
26 lines
1.2 KiB
Diff
26 lines
1.2 KiB
Diff
From e1b1e0acbd42a95d1e5c3c82f952ff2f6cf6e8c5 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 4bb21c48..30f16db0 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
|
|
|