generated from AriasCreations/vsmodtemplate
Patch an infinite loop
This commit is contained in:
parent
aad44f4c45
commit
74d85c57e1
3 changed files with 5 additions and 2 deletions
|
@ -132,6 +132,7 @@ public class RTPFactory
|
||||||
|
|
||||||
// Generate a new position
|
// Generate a new position
|
||||||
var position = rtp.MakeNewPosition();
|
var position = rtp.MakeNewPosition();
|
||||||
|
ServerUtilities.SendMessageTo(rtp.player, Lang.Get($"{ServerUtilities.MOD_ID}:rtp-progress"));
|
||||||
|
|
||||||
// Get the world handle, then get chunk size
|
// Get the world handle, then get chunk size
|
||||||
var worldManager = ServerUtilities.API.WorldManager;
|
var worldManager = ServerUtilities.API.WorldManager;
|
||||||
|
@ -178,6 +179,7 @@ public class RTPFactory
|
||||||
if (pos == null)
|
if (pos == null)
|
||||||
{
|
{
|
||||||
// Let this get checked again
|
// Let this get checked again
|
||||||
|
RTPCache.Remove(data);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -34,6 +34,7 @@
|
||||||
"back": "You've been taken back to your last position",
|
"back": "You've been taken back to your last position",
|
||||||
|
|
||||||
"rtp-search": "Searching for a random 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": "You have been teleported [{0}] blocks away!",
|
||||||
"rtp-found": "Found a valid landing position after {0} tries.",
|
"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",
|
"rtp-fail": "Giving up on RTP search. No valid position could be found. Try again later",
|
||||||
|
|
|
@ -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:08 AM MST",
|
"description": "A collection of server utilities\n\nBuild Date: 03-10-2025 @ 10:22 AM MST",
|
||||||
"version": "1.0.6-dev.11",
|
"version": "1.0.6-dev.12",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"game": ""
|
"game": ""
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue