2023-04-24 03:24:12 +02:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Owen1212055 <23108066+Owen1212055@users.noreply.github.com>
|
|
|
|
Date: Sun, 23 Apr 2023 18:22:50 -0400
|
|
|
|
Subject: [PATCH] Disable allowListing before received from client
|
|
|
|
|
|
|
|
The client does not send the packet needed to received this information until a little later, which can cause a condition where
|
|
|
|
despite a player having disabled listing, they are able to be seen for a brief moment. This causes the player to be listed as an Anonymous
|
|
|
|
Player until the actual configuration value is received from the client.
|
|
|
|
|
2023-06-08 19:25:32 +02:00
|
|
|
Fixed by mojang in 1.20
|
|
|
|
|
2023-04-24 03:24:12 +02:00
|
|
|
diff --git a/src/main/java/net/minecraft/server/level/ServerPlayer.java b/src/main/java/net/minecraft/server/level/ServerPlayer.java
|
2023-05-12 13:10:08 +02:00
|
|
|
index c4a070d445a0d834152eb53864eb08f4f90947ca..f4526885a57b804a754ab34675649a5466db300d 100644
|
2023-04-24 03:24:12 +02:00
|
|
|
--- a/src/main/java/net/minecraft/server/level/ServerPlayer.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/level/ServerPlayer.java
|
2023-05-12 13:10:08 +02:00
|
|
|
@@ -286,7 +286,7 @@ public class ServerPlayer extends Player {
|
2023-04-24 03:24:12 +02:00
|
|
|
this.recipeBook = new ServerRecipeBook();
|
|
|
|
this.lastSectionPos = SectionPos.of(0, 0, 0);
|
|
|
|
this.respawnDimension = Level.OVERWORLD;
|
|
|
|
- this.allowsListing = true;
|
|
|
|
+ this.allowsListing = false; // Paper - Set to false by default... wait for packet sent by client to populate
|
|
|
|
this.wardenSpawnTracker = new WardenSpawnTracker(0, 0, 0);
|
|
|
|
this.containerSynchronizer = new ContainerSynchronizer() {
|
|
|
|
@Override
|