Patch an infinite loop

This commit is contained in:
zontreck 2025-03-10 10:22:58 -07:00
parent aad44f4c45
commit 74d85c57e1
3 changed files with 5 additions and 2 deletions

View file

@ -132,6 +132,7 @@ public class RTPFactory
// Generate a new position
var position = rtp.MakeNewPosition();
ServerUtilities.SendMessageTo(rtp.player, Lang.Get($"{ServerUtilities.MOD_ID}:rtp-progress"));
// Get the world handle, then get chunk size
var worldManager = ServerUtilities.API.WorldManager;
@ -178,6 +179,7 @@ public class RTPFactory
if (pos == null)
{
// Let this get checked again
RTPCache.Remove(data);
}
else
{