From b509fd4f10c25307877b964258acbda3e5c9fd26 Mon Sep 17 00:00:00 2001 From: David Markowitz <39972741+EmosewaMC@users.noreply.github.com> Date: Sat, 7 Jun 2025 16:30:22 -0700 Subject: [PATCH] fix: Constructing player to themself (#1808) tested that I can see other players leave and join a world and that i no longer see a white screen when loading between worlds --- dGame/EntityManager.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dGame/EntityManager.cpp b/dGame/EntityManager.cpp index 66cd7c78..4fb754d8 100644 --- a/dGame/EntityManager.cpp +++ b/dGame/EntityManager.cpp @@ -364,6 +364,8 @@ void EntityManager::ConstructEntity(Entity* entity, const SystemAddress& sysAddr if (sysAddr == UNASSIGNED_SYSTEM_ADDRESS) { for (auto* player : PlayerManager::GetAllPlayers()) { + // Don't need to construct the player to themselves + if (entity->GetObjectID() == player->GetObjectID()) continue; if (player->GetPlayerReadyForUpdates()) { Game::server->Send(stream, player->GetSystemAddress(), false); } else {