mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-01-04 07:27:59 +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"));
|
NPC npc = registry.createNPC(type, id, key.getString("name"));
|
||||||
((CitizensNPC) npc).load(key);
|
((CitizensNPC) npc).load(key);
|
||||||
|
|
||||||
++created;
|
created++;
|
||||||
if (npc.isSpawned())
|
if (npc.isSpawned())
|
||||||
++spawned;
|
spawned++;
|
||||||
}
|
}
|
||||||
Messaging.logF("Loaded %d NPCs (%d spawned).", created, spawned);
|
Messaging.logF("Loaded %d NPCs (%d spawned).", created, spawned);
|
||||||
}
|
}
|
||||||
|
@ -180,6 +180,7 @@ public class CitizensNavigator implements Navigator {
|
|||||||
}
|
}
|
||||||
if (updateStationaryStatus())
|
if (updateStationaryStatus())
|
||||||
return;
|
return;
|
||||||
|
updatePathfindingRange();
|
||||||
boolean finished = executing.update();
|
boolean finished = executing.update();
|
||||||
if (!finished)
|
if (!finished)
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user