mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-04 18:00:00 +01:00
As a safety measure limit maxY <0.6D
This commit is contained in:
parent
61c6863d5f
commit
caff1e9ba4
@ -122,7 +122,7 @@ public class Util {
|
||||
Location center = new Location(bloc.getWorld(), bloc.getBlockX() + 0.5, bloc.getBlockY(),
|
||||
bloc.getBlockZ() + 0.5);
|
||||
BoundingBox bb = NMS.getCollisionBox(block);
|
||||
if (bb != null) {
|
||||
if (bb != null && bb.maxY < 0.6D) {
|
||||
center.setY(center.getY() + bb.maxY);
|
||||
}
|
||||
return center;
|
||||
|
Loading…
Reference in New Issue
Block a user