mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-02-11 11:40:41 +00:00
Don't need ratio out of 100 anymore
This commit is contained in:
parent
50acf4f51f
commit
59f89980a3
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue