Fix luminance data lost by Init() timing: move ServerDispatch hook to LoginComplete
ServerDispatch was hooked in Startup() but Init() was called later in LoginComplete(), clearing the luminance/title data already captured from the 0x0013 network event. Now hook ServerDispatch after Init() so captured data is not reset. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
88600db779
commit
ad8fb3a4ba
2 changed files with 4 additions and 2 deletions
|
|
@ -183,8 +183,6 @@ namespace MosswartMassacre
|
|||
CoreManager.Current.WorldFilter.CreateObject += OnInventoryCreate;
|
||||
CoreManager.Current.WorldFilter.ReleaseObject += OnInventoryRelease;
|
||||
CoreManager.Current.WorldFilter.ChangeObject += OnInventoryChange;
|
||||
// Subscribe to server messages for allegiance/luminance/title data
|
||||
CoreManager.Current.EchoFilter.ServerDispatch += EchoFilter_ServerDispatch;
|
||||
// Initialize VVS view after character login
|
||||
ViewManager.ViewInit();
|
||||
|
||||
|
|
@ -421,6 +419,10 @@ namespace MosswartMassacre
|
|||
{
|
||||
CharacterStats.Init();
|
||||
|
||||
// Subscribe to server messages for allegiance/luminance/title data
|
||||
// Must be AFTER Init() to avoid Init() clearing already-captured data
|
||||
CoreManager.Current.EchoFilter.ServerDispatch += EchoFilter_ServerDispatch;
|
||||
|
||||
// Start 10-minute character stats timer
|
||||
characterStatsTimer = new Timer(600000); // 10 minutes
|
||||
characterStatsTimer.Elapsed += OnCharacterStatsUpdate;
|
||||
|
|
|
|||
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue