Skip to content

Commit

Permalink
Just in case any mod changes the AI priority...
Browse files Browse the repository at this point in the history
  • Loading branch information
ganymedes01 committed Sep 22, 2015
1 parent 89d3121 commit 5f1fcec
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ public void spawnEvent(EntityJoinWorldEvent event) {
EntityAITaskEntry entry = (EntityAITaskEntry) obj;
if (entry.action instanceof EntityAIOpenDoor) {
villager.tasks.removeTask(entry.action);
villager.tasks.addTask(4, new EntityAIOpenCustomDoor(villager, true));
villager.tasks.addTask(entry.priority, new EntityAIOpenCustomDoor(villager, true));
break;
}
}
Expand Down

0 comments on commit 5f1fcec

Please sign in to comment.