Removed code redundancy

This commit is contained in:
Dark Arc 2014-03-02 03:44:58 -05:00
parent 4f1eb423ea
commit bbc30c1863
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ public class ProtectedPolygonalRegion extends ProtectedRegion {
p2 = points.get(s);
// Do the math, then reassign s
area += ((p2.getBlockX() + .5) + (p1.getBlockX() + .5)) * ((p2.getBlockZ() + .5) - (p1.getBlockZ() + .5));
area += (p2.getBlockX() + p1.getBlockX() + 1) * (p2.getBlockZ() - p1.getBlockZ());
s = i;
}
return (int) Math.abs(Math.ceil(area / 2D) * yLength);