Skip to content

Commit 1985c63

Browse files
committed
patch: send ping and game mode updates to sink players
1 parent 913e8ed commit 1985c63

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
From eeb3078809c87cf793e1146bd815936a4e88f024 Mon Sep 17 00:00:00 2001
2+
From: RoccoDev <[email protected]>
3+
Date: Wed, 21 Aug 2024 05:38:07 +0200
4+
Subject: [PATCH] Send ping and game mode updates to sink players
5+
6+
7+
diff --git a/src/main/java/net/minecraft/server/PlayerList.java b/src/main/java/net/minecraft/server/PlayerList.java
8+
index 762f9d24b..fb35d62db 100644
9+
--- a/src/main/java/net/minecraft/server/PlayerList.java
10+
+++ b/src/main/java/net/minecraft/server/PlayerList.java
11+
@@ -929,6 +929,12 @@ public abstract class PlayerList {
12+
}
13+
recipient.playerConnection.sendPacket(packet.cloneFor(recipient));
14+
}
15+
+ // Sink players
16+
+ for (WorldServer world : this.server.worlds) {
17+
+ for (EntityPlayer player : world.sinkPlayers.values()) {
18+
+ player.playerConnection.sendPacket(packet.cloneFor(player));
19+
+ }
20+
+ }
21+
}
22+
// KigPaper end
23+
24+
--
25+
2.45.2
26+

0 commit comments

Comments
 (0)