Fix: #2 - Finish adding /rtp

This commit is contained in:
zontreck 2025-03-06 17:19:40 -07:00
parent e53f26717f
commit 107f502736
3 changed files with 6 additions and 4 deletions

View file

@ -22,7 +22,7 @@ public class RTPFactory
BlockPos bPos = new BlockPos(isp.Entity.Pos.Dimension);
IServerWorldAccessor iswa = isp.Entity.World as IServerWorldAccessor;
int tries = 10;
int tries = 100;
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 > 25; i--)
for (int i = 255; i > 0; i--)
{
bPos.Y = i;
curBlock = iswa.BlockAccessor.GetBlock(bPos);