This commit is contained in:
2023-10-27 22:42:17 -05:00
parent f002de704b
commit d57e5df356
3 changed files with 5 additions and 15 deletions
@@ -408,10 +408,6 @@ private static final int cellGap = 1;
Regions region = Regions.getRegionAtLocation(point);
if(region != null) {
//if (!region.stairs)
// point.setY(region.center.y);
//else
// point.setY(region.lerpY(point));
path.add(new Vector3fImmutable(region.center.x,region.center.y,region.center.z)); //only use center points when travelling through regions
continue;
@@ -463,9 +459,4 @@ private static final int cellGap = 1;
//return false;
}
private static boolean collidesWithBuilding(Building building, Vector3fImmutable end){
MeshBounds mb = Bounds.meshBoundsCache.get(building.meshUUID);
return (end.x > mb.minX && end.x < mb.maxX && end.z > mb.minZ && end.z < mb.maxZ);
}
}