generated from AriasCreations/vsmodtemplate
parent
403f18c020
commit
7120b4083a
3 changed files with 5 additions and 4 deletions
|
@ -50,6 +50,7 @@ namespace AriasServerUtils
|
|||
if (pPos == null)
|
||||
{
|
||||
ServerUtilities.SendMessageTo(isp, Lang.Get($"{ServerUtilities.MOD_ID}:rtp-fail"));
|
||||
return TextCommandResult.Success();
|
||||
}
|
||||
Vec2i origin = new((int)isp.Entity.Pos.X, (int)isp.Entity.Pos.Z);
|
||||
Vec2i npos = new(pPos.X, pPos.Z);
|
||||
|
|
|
@ -22,7 +22,7 @@ public class RTPFactory
|
|||
BlockPos bPos = new BlockPos(isp.Entity.Pos.Dimension);
|
||||
IServerWorldAccessor iswa = isp.Entity.World as IServerWorldAccessor;
|
||||
|
||||
int tries = 5;
|
||||
int tries = 10;
|
||||
PlayerPosition PPos = PlayerPosition.from(isp.Entity);
|
||||
|
||||
while (tries-- > 0)
|
||||
|
@ -37,7 +37,7 @@ public class RTPFactory
|
|||
Block curBlock;
|
||||
|
||||
// Scan downwards to find a valid landing spot
|
||||
for (int i = 255; i > 50; i--)
|
||||
for (int i = 255; i > 25; i--)
|
||||
{
|
||||
bPos.Y = i;
|
||||
curBlock = iswa.BlockAccessor.GetBlock(bPos);
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
"modid": "ariasserverutils",
|
||||
"name": "Aria's Server Utilities",
|
||||
"authors": ["zontreck"],
|
||||
"description": "A collection of server utilities\n\nBuild Date: 03-06-2025 @ 4:54 PM MST",
|
||||
"version": "1.0.4-dev.5",
|
||||
"description": "A collection of server utilities\n\nBuild Date: 03-06-2025 @ 4:58 PM MST",
|
||||
"version": "1.0.4-dev.6",
|
||||
"dependencies": {
|
||||
"game": ""
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue