Don't need ratio out of 100 anymore

This commit is contained in:
Jesse Boyd 2019-04-17 13:13:56 +10:00
parent 50acf4f51f
commit 59f89980a3
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -65,9 +65,8 @@ import java.util.Map;
}
final BlockBucket bucket = new BlockBucket();
if (includeRatios) {
final double ratio = 100D / blocks.length;
for (final Map.Entry<PlotBlock, Integer> count : counts.entrySet()) {
bucket.addBlock(count.getKey(), (int) (count.getValue() * ratio));
bucket.addBlock(count.getKey(), (int) (count.getValue()));
}
} else {
counts.keySet().forEach(bucket::addBlock);