mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 21:26:45 +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