Also care about "satisfied insertion" (which is the most suggestive variable name in the entire codebase)

This commit is contained in:
Raoul Van den Berge
2016-09-03 02:20:55 +02:00
parent 6a4794f868
commit 3e7ec6e7c2

View File

@@ -190,6 +190,12 @@ public class CraftingTaskProcessing extends CraftingTask {
}
}
return (int) ((float) satisfiedAmount / (float) satisfied.length * 100F);
for (boolean item : satisfiedInsertion) {
if (item) {
satisfiedAmount++;
}
}
return (int) ((float) satisfiedAmount / (float) (satisfied.length + satisfiedInsertion.length) * 100F);
}
}