mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2025-01-24 16:31:38 +01:00
Made it so scanned types from multiple dimensions stack.
This commit is contained in:
parent
e79ccd87ef
commit
af42740fc5
@ -46,7 +46,14 @@ public class QueuedIslandScan {
|
||||
this.executions += currentScan.getExecutions();
|
||||
this.totalScanned += currentScan.getTotalScanned();
|
||||
this.blocksSize += currentScan.getBlocksSize();
|
||||
this.amounts.putAll(currentScan.getAmounts());
|
||||
|
||||
for (Map.Entry<CompatibleMaterial, BlockAmount> entry : currentScan.getAmounts().entrySet()) {
|
||||
if (amounts.containsKey(entry.getKey())) {
|
||||
amounts.get(entry.getKey()).increaseAmount(entry.getValue().getAmount());
|
||||
} else {
|
||||
amounts.put(entry.getKey(), entry.getValue());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public boolean scan() {
|
||||
|
Loading…
Reference in New Issue
Block a user