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
|
||||
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.
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue