mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-26 12:35:15 +01:00
Don't need ratio out of 100 anymore
This commit is contained in:
parent
50acf4f51f
commit
59f89980a3
@ -65,9 +65,8 @@ import java.util.Map;
|
|||||||
}
|
}
|
||||||
final BlockBucket bucket = new BlockBucket();
|
final BlockBucket bucket = new BlockBucket();
|
||||||
if (includeRatios) {
|
if (includeRatios) {
|
||||||
final double ratio = 100D / blocks.length;
|
|
||||||
for (final Map.Entry<PlotBlock, Integer> count : counts.entrySet()) {
|
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 {
|
} else {
|
||||||
counts.keySet().forEach(bucket::addBlock);
|
counts.keySet().forEach(bucket::addBlock);
|
||||||
|
Loading…
Reference in New Issue
Block a user