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)
|
if (pPos == null)
|
||||||
{
|
{
|
||||||
ServerUtilities.SendMessageTo(isp, Lang.Get($"{ServerUtilities.MOD_ID}:rtp-fail"));
|
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 origin = new((int)isp.Entity.Pos.X, (int)isp.Entity.Pos.Z);
|
||||||
Vec2i npos = new(pPos.X, pPos.Z);
|
Vec2i npos = new(pPos.X, pPos.Z);
|
||||||
|
|
|
@ -22,7 +22,7 @@ public class RTPFactory
|
||||||
BlockPos bPos = new BlockPos(isp.Entity.Pos.Dimension);
|
BlockPos bPos = new BlockPos(isp.Entity.Pos.Dimension);
|
||||||
IServerWorldAccessor iswa = isp.Entity.World as IServerWorldAccessor;
|
IServerWorldAccessor iswa = isp.Entity.World as IServerWorldAccessor;
|
||||||
|
|
||||||
int tries = 5;
|
int tries = 10;
|
||||||
PlayerPosition PPos = PlayerPosition.from(isp.Entity);
|
PlayerPosition PPos = PlayerPosition.from(isp.Entity);
|
||||||
|
|
||||||
while (tries-- > 0)
|
while (tries-- > 0)
|
||||||
|
@ -37,7 +37,7 @@ public class RTPFactory
|
||||||
Block curBlock;
|
Block curBlock;
|
||||||
|
|
||||||
// Scan downwards to find a valid landing spot
|
// 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;
|
bPos.Y = i;
|
||||||
curBlock = iswa.BlockAccessor.GetBlock(bPos);
|
curBlock = iswa.BlockAccessor.GetBlock(bPos);
|
||||||
|
|
|
@ -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-06-2025 @ 4:54 PM MST",
|
"description": "A collection of server utilities\n\nBuild Date: 03-06-2025 @ 4:58 PM MST",
|
||||||
"version": "1.0.4-dev.5",
|
"version": "1.0.4-dev.6",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"game": ""
|
"game": ""
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue