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
{

View file

@ -34,6 +34,7 @@
"back": "You've been taken back to your last position",
"rtp-search": "Searching for a random position...",
"rtp-progress": "Still searchinf for a random position...",
"rtp": "You have been teleported [{0}] blocks away!",
"rtp-found": "Found a valid landing position after {0} tries.",
"rtp-fail": "Giving up on RTP search. No valid position could be found. Try again later",

View file

@ -3,8 +3,8 @@
"modid": "ariasserverutils",
"name": "Aria's Server Utilities",
"authors": ["zontreck"],
"description": "A collection of server utilities\n\nBuild Date: 03-10-2025 @ 10:08 AM MST",
"version": "1.0.6-dev.11",
"description": "A collection of server utilities\n\nBuild Date: 03-10-2025 @ 10:22 AM MST",
"version": "1.0.6-dev.12",
"dependencies": {
"game": ""
}