mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-01-01 14:08:08 +01:00
Update pathfinding range more often
This commit is contained in:
parent
57a491fb8b
commit
3adaa8a04f
@ -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);
|
||||
}
|
||||
|
@ -180,6 +180,7 @@ public class CitizensNavigator implements Navigator {
|
||||
}
|
||||
if (updateStationaryStatus())
|
||||
return;
|
||||
updatePathfindingRange();
|
||||
boolean finished = executing.update();
|
||||
if (!finished)
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user