mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-14 18:44:48 +02:00
Round up Y position when standing on half blocks. This should address some safelogin bugs.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user