Skip to content

Commit

Permalink
Beta 22
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandra-Myers committed Aug 31, 2023
1 parent b7ab734 commit b46257b
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,11 @@ public void adjustHitResults(HitResult newValue) {
oldHitResults.add(1, newValue);
else
oldHitResults.add(newValue);
oldHitResults.removeIf(hitResult -> oldHitResults.indexOf(hitResult) > currentAveragePing + 1);
oldHitResults.removeIf(hitResult -> {
if(oldHitResults.indexOf(hitResult) > currentAveragePing + 1)
hitResultToRotationMap.remove(hitResult);
return oldHitResults.indexOf(hitResult) > currentAveragePing + 1;
});
Float[] rotations = new Float[2];
rotations[0] = getYHeadRot() % 360;
rotations[1] = getXRot() % 360;
Expand Down

0 comments on commit b46257b

Please sign in to comment.