generated from AriasCreations/vsmodtemplate
Ensure the failed rtp gets removed from the list
This commit is contained in:
parent
40f8eb4048
commit
aad44f4c45
2 changed files with 11 additions and 2 deletions
|
@ -149,6 +149,15 @@ public class RTPFactory
|
||||||
|
|
||||||
// Log the request
|
// Log the request
|
||||||
ChunkChecks.Add(chunk);
|
ChunkChecks.Add(chunk);
|
||||||
|
|
||||||
|
if (rtp.NumTriesRemaining <= 0)
|
||||||
|
{
|
||||||
|
// Send failure message to the player
|
||||||
|
ServerUtilities.SendMessageTo(rtp.player, Lang.Get($"{ServerUtilities.MOD_ID}:rtp-fail"));
|
||||||
|
// This check needs to be removed from the queue
|
||||||
|
RTPCache.Remove(rtp);
|
||||||
|
return; // We modified the list, so abort the loop.
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3,8 +3,8 @@
|
||||||
"modid": "ariasserverutils",
|
"modid": "ariasserverutils",
|
||||||
"name": "Aria's Server Utilities",
|
"name": "Aria's Server Utilities",
|
||||||
"authors": ["zontreck"],
|
"authors": ["zontreck"],
|
||||||
"description": "A collection of server utilities\n\nBuild Date: 03-10-2025 @ 10:06 AM MST",
|
"description": "A collection of server utilities\n\nBuild Date: 03-10-2025 @ 10:08 AM MST",
|
||||||
"version": "1.0.6-dev.10",
|
"version": "1.0.6-dev.11",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"game": ""
|
"game": ""
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue