Use world min-height for island bounding box.

This commit is contained in:
tastybento 2022-02-26 10:22:41 -08:00
parent 6c7d77f093
commit 6a009946f5

View File

@ -698,7 +698,7 @@ public class Island implements DataObject, MetaDataAble {
* @since 1.5.2
*/
public BoundingBox getBoundingBox() {
return new BoundingBox(getMinX(), 0.0D, getMinZ(), getMaxX(), world.getMaxHeight(), getMaxZ());
return new BoundingBox(getMinX(), world.getMinHeight(), getMinZ(), getMaxX(), world.getMaxHeight(), getMaxZ());
}
/**