Commit c37abeab authored by MarkG's avatar MarkG Committed by TIGERs GitLab
Browse files

[bugfix] Get dribbling start pos before removing it from list

See merge request main/Sumatra!1482

sumatra-commit: 3974c6fbd372ccb02bde1f3ef307548fa53b1367
parent 326d832c
Pipeline #17315 passed with stage
in 11 minutes and 37 seconds
......@@ -64,8 +64,7 @@ public class DribblingDetector extends AGameEventDetector
.min(Map.Entry.comparingByValue())
.map(Map.Entry::getKey);
violatingBot.ifPresent(currentContacts::remove);
return violatingBot.map(botId -> new BotDribbledBallTooFar(botId, currentContacts.get(botId), ballPos));
return violatingBot.map(botId -> new BotDribbledBallTooFar(botId, currentContacts.remove(botId), ballPos));
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment