Revert "Merge pull request #5890 from Nightfirecat/colored-ground-markers"

This reverts commit 72b3e4560d, reversing
changes made to 5a5de3d33f.
This commit is contained in:
Adam
2019-03-06 14:53:59 -05:00
parent 66bce610db
commit 33988a72e1
7 changed files with 56 additions and 208 deletions

View File

@@ -326,36 +326,4 @@ public class WorldPoint
{
return ((x >> 6) << 8) | (y >> 6);
}
/**
* Converts the passed region ID and coordinates to a world coordinate
*/
public static WorldPoint fromRegion(int regionId, int regionX, int regionY, int plane)
{
return new WorldPoint(
((regionId >>> 8) << 6) + regionX,
((regionId & 0xff) << 6) + regionY,
plane);
}
/**
* Gets the X-axis coordinate of the region coordinate
*/
public int getRegionX()
{
return getRegionOffset(x);
}
/**
* Gets the Y-axis coordinate of the region coordinate
*/
public int getRegionY()
{
return getRegionOffset(y);
}
private static int getRegionOffset(final int position)
{
return position & 0x3f;
}
}