cleanup
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user