[trunk] change portal exit position for fixed getSavePosition

git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1167 e251c2fe-e539-e718-e476-b85c1f46cddb
This commit is contained in:
snowleo 2011-04-10 20:51:39 +00:00
parent c8c019660e
commit b2b1c1510a

View File

@ -41,12 +41,12 @@ public class NetherPortal
{
// portal is in X direction
return new Location(block.getWorld(), block.getX() + 1,
block.getY(), block.getZ() + 1.5 - 2 * Math.round(Math.random()));
block.getY(), block.getZ() + 1 - 2 * Math.round(Math.random()));
}
else
{
// portal is in Z direction
return new Location(block.getWorld(), block.getX() + 1.5 - 2 * Math.round(Math.random()),
return new Location(block.getWorld(), block.getX() + 1 - 2 * Math.round(Math.random()),
block.getY(), block.getZ() + 1);
}
}