mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-05 12:02:53 +00:00
[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:
parent
c8c019660e
commit
b2b1c1510a
1 changed files with 2 additions and 2 deletions
|
@ -41,12 +41,12 @@ public class NetherPortal
|
||||||
{
|
{
|
||||||
// portal is in X direction
|
// portal is in X direction
|
||||||
return new Location(block.getWorld(), block.getX() + 1,
|
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
|
else
|
||||||
{
|
{
|
||||||
// portal is in Z direction
|
// 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);
|
block.getY(), block.getZ() + 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue