mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-10-02 10:53:44 +00:00
fix(minimap): venture vision shows again after logging in (issue 611)
Venture vision from an equipped item was sent while the character loaded, before the client's UI existed, so after a login the minimap stayed empty until the item was equipped again (a world transfer keeps the UI, so it worked there). The player's active venture vision effects are sent again once the player has loaded. Check: wear the Venture Vision helmet, log out and back in: the minimap shows the icons. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -65,6 +65,9 @@ namespace GameMessages {
|
||||
SendPlayerReady(entity->GetObjectID(), zoneControlEntity ? zoneControlEntity->GetObjectID() : LWOOBJID_EMPTY, sysAddr);
|
||||
entity->SetPlayerReadyForUpdates();
|
||||
|
||||
// Venture vision from equipped items was sent before the client's UI existed on a fresh login
|
||||
if (auto* characterComponent = entity->GetComponent<CharacterComponent>()) characterComponent->ResendVentureVision();
|
||||
|
||||
auto* ghostComponent = entity->GetComponent<GhostComponent>();
|
||||
if (ghostComponent != nullptr) {
|
||||
ghostComponent->ConstructLimboEntities();
|
||||
|
||||
Reference in New Issue
Block a user