generated from AriasCreations/vsmodtemplate
Fix: #2 - Finish adding /rtp
This commit is contained in:
parent
e53f26717f
commit
107f502736
3 changed files with 6 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue