Fixed concurrent modification bug with NPC tasks.

This commit is contained in:
luisc committed 2022-01-31 23:01:52 -06:00
1 parent 7de585843d
commit 1af875aea9
3 files changed
+8 -3

No files matched your search

@@ -434,7 +434,11 @@ public abstract class EntityNPCInterface extends EntityCreature implements IEnti
protected void updateAITasks()
{
super.updateAITasks();
try {
super.updateAITasks();
} catch (ConcurrentModificationException ignored){
}
this.getNavigator().onUpdateNavigation();
this.getMoveHelper().onUpdateMoveHelper();
}