mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-09-28 22:57:29 +02:00
This may fix something, probably not
This commit is contained in:
parent
f08a9a4aa4
commit
f5a3d63004
@ -179,7 +179,7 @@ public int volume() {
|
|||||||
p2 = points.get(s);
|
p2 = points.get(s);
|
||||||
|
|
||||||
// Do the math, then reassign s
|
// Do the math, then reassign s
|
||||||
area += (p2.getBlockX() + p1.getBlockX()) * (p2.getBlockZ() - p1.getBlockZ());
|
area += ((p2.getBlockX() + .5) + (p1.getBlockX() + .5)) * ((p2.getBlockZ() + .5) - (p1.getBlockZ() + .5));
|
||||||
s = i;
|
s = i;
|
||||||
}
|
}
|
||||||
return (int) Math.abs(Math.ceil(area / 2D) * yLength);
|
return (int) Math.abs(Math.ceil(area / 2D) * yLength);
|
||||||
|
Loading…
Reference in New Issue
Block a user