mirror of
https://github.com/BentoBoxWorld/Challenges.git
synced 2025-01-16 13:11:24 +01:00
Fix issue when entities has not been removed on challenge completion (#118).
I forgot to populate entity queue :(
This commit is contained in:
parent
9f8bf03708
commit
3521495739
@ -1064,6 +1064,8 @@ public class TryToComplete
|
|||||||
// Check if entity is inside challenge bounding box
|
// Check if entity is inside challenge bounding box
|
||||||
if (requiredMap.containsKey(entity.getType()))
|
if (requiredMap.containsKey(entity.getType()))
|
||||||
{
|
{
|
||||||
|
entityQueue.add(entity);
|
||||||
|
|
||||||
entitiesFound.putIfAbsent(entity.getType(), 1);
|
entitiesFound.putIfAbsent(entity.getType(), 1);
|
||||||
entitiesFound.computeIfPresent(entity.getType(), (reqEntity, amount) -> amount + 1);
|
entitiesFound.computeIfPresent(entity.getType(), (reqEntity, amount) -> amount + 1);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user