Update pathfinding range more often

This commit is contained in:
fullwall 2012-09-13 21:11:17 +08:00
parent 57a491fb8b
commit 3adaa8a04f
2 changed files with 3 additions and 2 deletions

View File

@ -45,9 +45,9 @@ public class NPCDataStore {
NPC npc = registry.createNPC(type, id, key.getString("name"));
((CitizensNPC) npc).load(key);
++created;
created++;
if (npc.isSpawned())
++spawned;
spawned++;
}
Messaging.logF("Loaded %d NPCs (%d spawned).", created, spawned);
}

View File

@ -180,6 +180,7 @@ public class CitizensNavigator implements Navigator {
}
if (updateStationaryStatus())
return;
updatePathfindingRange();
boolean finished = executing.update();
if (!finished)
return;