Improve teleport behavior for home command (#4369)

This commit is contained in:
Phillipp Glanz
2025-02-15 16:29:21 +01:00
committed by GitHub
parent 8bb15d5c65
commit 1b9d0d5317
4 changed files with 32 additions and 9 deletions

View File

@ -262,6 +262,11 @@ public class BukkitUtil extends WorldUtil {
});
}
@Override
public boolean isSmallBlock(Location location) {
return adapt(location).getBlock().getBoundingBox().getHeight() < 0.25;
}
@Override
@NonNegative
public int getHighestBlockSynchronous(final @NonNull String world, final int x, final int z) {