mirror of
https://github.com/Pumpkin-MC/Pumpkin.git
synced 2026-08-30 20:14:23 +00:00
fix(player): fix newly joined players not seeing existing players in tab list (#2280)
* fix:tab_list * fix:tab_list
This commit is contained in:
@@ -722,7 +722,7 @@ impl Player {
|
||||
tab_list_name: Mutex::new(None),
|
||||
tab_list_order: AtomicI32::new(0),
|
||||
tab_list_latency: AtomicI32::new(0),
|
||||
tab_list_listed: AtomicBool::new(false),
|
||||
tab_list_listed: AtomicBool::new(true),
|
||||
fishing_bobber: AtomicI32::new(-1),
|
||||
bedrock_skin: ArcSwap::new(Arc::new(bedrock_skin)),
|
||||
}
|
||||
|
||||
@@ -2494,6 +2494,7 @@ impl World {
|
||||
name: &player.gameprofile.name,
|
||||
properties,
|
||||
},
|
||||
PlayerAction::UpdateGameMode(VarInt(player.gamemode.load() as i32)),
|
||||
PlayerAction::UpdateListed(player.tab_list_listed.load(Ordering::Relaxed)),
|
||||
PlayerAction::UpdateLatency(VarInt(
|
||||
player.tab_list_latency.load(Ordering::Relaxed),
|
||||
@@ -2501,7 +2502,6 @@ impl World {
|
||||
PlayerAction::UpdateListOrder(VarInt(
|
||||
player.tab_list_order.load(Ordering::Relaxed),
|
||||
)),
|
||||
PlayerAction::UpdateGameMode(VarInt(player.gamemode.load() as i32)),
|
||||
];
|
||||
|
||||
if base_config.allow_chat_reports {
|
||||
@@ -2722,8 +2722,8 @@ impl World {
|
||||
name: &gameprofile.name,
|
||||
properties: &gameprofile.properties.load(),
|
||||
},
|
||||
PlayerAction::UpdateListed(existing_player.tab_list_listed.load(Ordering::Relaxed)),
|
||||
PlayerAction::UpdateGameMode(VarInt(existing_player.gamemode.load() as i32)),
|
||||
PlayerAction::UpdateListed(existing_player.tab_list_listed.load(Ordering::Relaxed)),
|
||||
PlayerAction::UpdateLatency(VarInt(
|
||||
existing_player.tab_list_latency.load(Ordering::Relaxed),
|
||||
)),
|
||||
|
||||
Reference in New Issue
Block a user