Attempt to fix msq sometimes stopping v2.3
authorLiza Carvelli <liza@carvel.li>
Wed, 7 Aug 2024 12:10:28 +0000 (14:10 +0200)
committerLiza Carvelli <liza@carvel.li>
Wed, 7 Aug 2024 12:10:28 +0000 (14:10 +0200)
Questionable/Functions/QuestFunctions.cs
Questionable/Questionable.csproj

index 505546da2b53399f4b88bf9dc7cdd4f689027daf..42c9fb959001e20b1e748b084989ef7e2318ff84 100644 (file)
@@ -172,8 +172,11 @@ internal sealed unsafe class QuestFunctions
             return default;
 
         // it can sometimes happen (although this isn't reliably reproducible) that the quest returned here
-        // is one you've just completed.
-        if (!IsReadyToAcceptQuest(currentQuest))
+        // is one you've just completed. We return 255 as sequence here, since that is the end of said quest;
+        // but this is just really hoping that this breaks nothing.
+        if (IsQuestComplete(currentQuest))
+            return (currentQuest, 255);
+        else if (!IsReadyToAcceptQuest(currentQuest))
             return default;
 
         // if we're not at a high enough level to continue, we also ignore it
index afd9f8918b529d74a97b79d6f04cc303cbccdeaf..0fd5fa31895046114cc5f0e02bc2ea54bfd2dded 100644 (file)
@@ -1,6 +1,6 @@
 <Project Sdk="Dalamud.NET.Sdk/10.0.0">
     <PropertyGroup>
-        <Version>2.2</Version>
+        <Version>2.3</Version>
         <OutputPath>dist</OutputPath>
         <PathMap Condition="$(SolutionDir) != ''">$(SolutionDir)=X:\</PathMap>
         <Platforms>x64</Platforms>