mirror of https://github.com/cabaletta/baritone
simplify
This commit is contained in:
parent
8ece179912
commit
2a21a1ca18
|
@ -45,7 +45,7 @@ public abstract class QuantizedTaskPriorityAllocationCache extends QuantizedTask
|
|||
Allocation alloc = new Allocation(amount);
|
||||
List<IQuantizedParentTaskRelationship> children = childTasks();
|
||||
if (children.size() < 2) {
|
||||
return new Allocation(amount).distributeEqually(); // 0 or 1 cannot be anything but equal distribution
|
||||
return alloc.distributeEqually(); // 0 or 1 cannot be anything but equal distribution
|
||||
}
|
||||
double[] costs = new double[children.size()];
|
||||
for (int i = 0; i < costs.length; i++) {
|
||||
|
|
Loading…
Reference in New Issue