From e7bab118a73b5cda0a576db566ee07b58d4bc6c9 Mon Sep 17 00:00:00 2001 From: James Armstrong <32995055+jmarmstrong1207@users.noreply.github.com> Date: Tue, 28 Apr 2026 20:08:46 -0700 Subject: [PATCH] Correctly Reset fetched missions after vote handling Clear fetched missions after vote expiration or action execution. Before, it would clear before the timer passes due to it being in a separate thread i believe --- .../Features/Commands/DefaultCommands/VoteMissionCommand.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Nuclei/Features/Commands/DefaultCommands/VoteMissionCommand.cs b/Nuclei/Features/Commands/DefaultCommands/VoteMissionCommand.cs index 73515e3..7bd75df 100644 --- a/Nuclei/Features/Commands/DefaultCommands/VoteMissionCommand.cs +++ b/Nuclei/Features/Commands/DefaultCommands/VoteMissionCommand.cs @@ -66,14 +66,16 @@ public override bool Execute(Player player, string[] args) else { ChatService.SendPrivateChatMessage("Cannot start a new mission vote, please wait for current vote to expire.", player); + _fetchedMissions = null; return false; } - _fetchedMissions = null; return true; void Action() { Globals.DedicatedServerManagerInstance.missionRotation.OverrideNext(_fetchedMissions![idx - 1]); + _fetchedMissions = null; + } } @@ -81,4 +83,4 @@ public override bool Execute(string[] args) { throw new Exception("Requires Player object"); } -} \ No newline at end of file +}