bad me, bad

This commit is contained in:
Nathan C 2025-02-17 23:06:07 -05:00
parent 0a0633492e
commit 8756b1d65e
No known key found for this signature in database
GPG Key ID: 6094F8F8D02EA281
2 changed files with 6 additions and 3 deletions

View File

@ -216,8 +216,9 @@ namespace QuestShare.Services
} }
public static void DispatchUpdate(bool partyUpdate) public static void DispatchUpdate(bool partyUpdate)
{ {
if (!ShareService.IsRegistered || !ShareService.IsGrouped) if (!ShareService.IsRegistered && !ShareService.IsGrouped)
{ {
Log.Error("Not registered or grouped");
return; return;
} }
var activeQuest = GameQuestManager.GetActiveQuest(); var activeQuest = GameQuestManager.GetActiveQuest();
@ -243,6 +244,7 @@ namespace QuestShare.Services
ShareService.SetHostedShareCode(response.ShareCode); ShareService.SetHostedShareCode(response.ShareCode);
ShareService.IsHost = true; ShareService.IsHost = true;
ShareService.IsGrouped = false; ShareService.IsGrouped = false;
ShareService.IsRegistered = true;
OnRegisterEvent.Invoke(this, new SocketEventArgs { Success = true }); OnRegisterEvent.Invoke(this, new SocketEventArgs { Success = true });
} }
else else
@ -326,6 +328,7 @@ namespace QuestShare.Services
ShareService.PartyMembers = response.Members ?? []; ShareService.PartyMembers = response.Members ?? [];
ShareService.IsHost = response.IsHost; ShareService.IsHost = response.IsHost;
ShareService.IsGrouped = false; ShareService.IsGrouped = false;
ShareService.IsRegistered = true;
ShareService.SetHostedShareCode(response.ShareCode); ShareService.SetHostedShareCode(response.ShareCode);
GameQuestManager.SetActiveFlag(response.SharedQuestId); GameQuestManager.SetActiveFlag(response.SharedQuestId);
} else } else

View File

@ -16,13 +16,13 @@
"DownloadLinkTesting": "https://git.nathanc.tech/nate/QuestShare/releases/download/alpha-2/latest.zip", "DownloadLinkTesting": "https://git.nathanc.tech/nate/QuestShare/releases/download/alpha-2/latest.zip",
"DownloadLinkUpdate": "https://git.nathanc.tech/nate/QuestShare/releases/download/alpha-2/latest.zip", "DownloadLinkUpdate": "https://git.nathanc.tech/nate/QuestShare/releases/download/alpha-2/latest.zip",
"DownloadCount": 1, "DownloadCount": 1,
"LastUpdate": "1739848679", "LastUpdate": "1739848699",
"IsHide": false, "IsHide": false,
"IsTestingExclusive": false, "IsTestingExclusive": false,
"IconUrl": "", "IconUrl": "",
"DalamudApiLevel": 11, "DalamudApiLevel": 11,
"InternalName": "QuestShare", "InternalName": "QuestShare",
"AssemblyVersion": "1.0.0.2" "AssemblyVersion": "1.0.0.3"
} }
] ]