mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-07 04:53:11 +00:00
Fix world heights
This commit is contained in:
parent
b9aecbe1d4
commit
7564ebf79e
2 changed files with 3 additions and 3 deletions
|
@ -293,7 +293,7 @@ public class Util
|
|||
while (isBlockUnsafe(world, x, y, z))
|
||||
{
|
||||
y += 1;
|
||||
if (y >= 127)
|
||||
if (y >= world.getHighestBlockYAt(x, z))
|
||||
{
|
||||
x += 1;
|
||||
break;
|
||||
|
@ -304,8 +304,8 @@ public class Util
|
|||
y -= 1;
|
||||
if (y <= 1)
|
||||
{
|
||||
y = 127;
|
||||
x += 1;
|
||||
y = world.getHighestBlockYAt(x, z);
|
||||
if (x - 32 > loc.getBlockX())
|
||||
{
|
||||
throw new Exception(_("holeInFloor"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue