mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-12 04:20:41 +00:00
Round up Y position when standing on half blocks. This should address some safelogin bugs.
This commit is contained in:
parent
049577c97e
commit
b1d422ba8f
1 changed files with 1 additions and 1 deletions
|
@ -325,7 +325,7 @@ public class LocationUtil
|
|||
{
|
||||
final World world = loc.getWorld();
|
||||
final int x = loc.getBlockX();
|
||||
int y = loc.getBlockY();
|
||||
int y = (int)Math.round(loc.getY());
|
||||
final int z = loc.getBlockZ();
|
||||
while (LocationUtil.isBlockUnsafe(world, x, y, z) && y > -1)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue