mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-01-04 23:48:42 +01:00
Fixed a bug where gap filler overrode existing values
This commit is contained in:
parent
6fe5451a83
commit
d2581df3f6
@ -62,7 +62,7 @@ public class MutatorFunctions {
|
||||
private static void addMissing(long from, long to, NavigableMap<Long, Integer> points, long accuracy, Integer replacement) {
|
||||
long iterate = from;
|
||||
while (iterate < to) {
|
||||
points.put(iterate, replacement);
|
||||
points.putIfAbsent(iterate, replacement);
|
||||
iterate += accuracy;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user