mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-03-02 11:11:58 +01: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
@ -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 New Issue
Block a user