Remove old deprecated code in RTPFactory

This commit is contained in:
zontreck 2025-05-03 12:40:50 -07:00
parent 7ca713e42a
commit 4c585f647e
2 changed files with 2 additions and 38 deletions

View file

@ -59,42 +59,6 @@ public class RTPFactory
check.Y = height + 1;
PPos.Y = height + 1;
return PPos;
int Y = 255;
bool lastBlockAir = true;
bool lastLastBlockAir = true;
bool curBlockAir = true;
bool safe = false;
for (Y = 255; Y > 1; Y--)
{
// Manually scan downwards
check.Y = Y;
var current = BA.GetBlock(check);
if (current.BlockMaterial != EnumBlockMaterial.Air)
{
curBlockAir = false;
}
lastLastBlockAir = lastBlockAir;
lastBlockAir = curBlockAir;
if (!curBlockAir && lastBlockAir && lastLastBlockAir)
{
// We found a safe spot to land
check.Y++;
safe = true;
break;
}
}
if (!safe) return null;
PPos.Y = check.Y;
return PPos;
}
/// <summary>