Skip to content

Commit 82016ae

Browse files
committed
Remove forgotten import
1 parent fad8b68 commit 82016ae

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

deepslateMC-server/minecraft-patches/features/0001-Dont-show-spectator-players-in-tablist.patch

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,10 @@ index 7e4cfe12312e0e36a6a19210cd76858a6eaf8abd..3d265212bc47250254f279b0f51e18a7
3030
if (gameModeForPlayer == GameType.CREATIVE) {
3131
this.player.resetCurrentImpulseContext();
3232
diff --git a/net/minecraft/server/players/PlayerList.java b/net/minecraft/server/players/PlayerList.java
33-
index 5edc92163eb13a21ba056a898a228df676afe942..8c1f72d6bd9a3aac88de5a4a650d3e04291b28a0 100644
33+
index 5edc92163eb13a21ba056a898a228df676afe942..253b43fe3089999380dd985a5be8ac8a801d28a1 100644
3434
--- a/net/minecraft/server/players/PlayerList.java
3535
+++ b/net/minecraft/server/players/PlayerList.java
36-
@@ -99,6 +99,7 @@ import net.minecraft.world.scores.DisplaySlot;
37-
import net.minecraft.world.scores.Objective;
38-
import net.minecraft.world.scores.PlayerTeam;
39-
import net.minecraft.world.scores.Team;
40-
+import org.bukkit.Bukkit;
41-
import org.slf4j.Logger;
42-
43-
public abstract class PlayerList {
44-
@@ -485,6 +486,25 @@ public abstract class PlayerList {
36+
@@ -485,6 +485,25 @@ public abstract class PlayerList {
4537
// CraftBukkit start - sendAll above replaced with this loop
4638
ClientboundPlayerInfoUpdatePacket packet = ClientboundPlayerInfoUpdatePacket.createPlayerInitializing(List.of(player)); // Paper - Add Listing API for Player
4739

@@ -67,7 +59,7 @@ index 5edc92163eb13a21ba056a898a228df676afe942..8c1f72d6bd9a3aac88de5a4a650d3e04
6759
final List<ServerPlayer> onlinePlayers = Lists.newArrayListWithExpectedSize(this.players.size() - 1); // Paper - Use single player info update packet on join
6860
for (int i = 0; i < this.players.size(); ++i) {
6961
ServerPlayer entityplayer1 = (ServerPlayer) this.players.get(i);
70-
@@ -493,7 +513,13 @@ public abstract class PlayerList {
62+
@@ -493,7 +512,13 @@ public abstract class PlayerList {
7163
// Paper start - Add Listing API for Player
7264
if (entityplayer1.getBukkitEntity().isListed(bukkitPlayer)) {
7365
// Paper end - Add Listing API for Player
@@ -82,7 +74,7 @@ index 5edc92163eb13a21ba056a898a228df676afe942..8c1f72d6bd9a3aac88de5a4a650d3e04
8274
// Paper start - Add Listing API for Player
8375
} else {
8476
entityplayer1.connection.send(ClientboundPlayerInfoUpdatePacket.createSinglePlayerInitializing(player, false));
85-
@@ -515,7 +541,27 @@ public abstract class PlayerList {
77+
@@ -515,7 +540,27 @@ public abstract class PlayerList {
8678
}
8779
// Paper start - Use single player info update packet on join
8880
if (!onlinePlayers.isEmpty()) {

0 commit comments

Comments
 (0)