Fix issue when entities has not been removed on challenge completion (#118).

I forgot to populate entity queue :(
This commit is contained in:
BONNe 2019-05-14 09:55:34 +03:00
parent 9f8bf03708
commit 3521495739
1 changed files with 2 additions and 0 deletions

View File

@ -1064,6 +1064,8 @@ public class TryToComplete
// 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);