Skip to content

Commit

Permalink
Fix issue when entities has not been removed on challenge completion (#…
Browse files Browse the repository at this point in the history
…118).

I forgot to populate entity queue :(
  • Loading branch information
BONNe committed May 14, 2019
1 parent 9f8bf03 commit 3521495
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1064,6 +1064,8 @@ private ChallengeResult searchForEntities(Map<EntityType, Integer> requiredMap,
// Check if entity is inside challenge bounding box
if (requiredMap.containsKey(entity.getType()))
{
entityQueue.add(entity);

entitiesFound.putIfAbsent(entity.getType(), 1);
entitiesFound.computeIfPresent(entity.getType(), (reqEntity, amount) -> amount + 1);

Expand Down

0 comments on commit 3521495

Please sign in to comment.