Skip to content

Commit

Permalink
fix for citizens update
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed May 12, 2019
1 parent 0b245f1 commit 8cba58f
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,13 @@

public class WalkCommandCitizensEvents implements Listener {

public static double HIGH_INFLUENCE = 1.0 / 20.0;
public static double LOW_INFLUENCE = 1.0 / 200.0;

public static Flocker generateNewFlocker(NPC npc, double radius) {
NPCFlock flock = new RadiusNPCFlock(radius);
return new Flocker(npc, flock, new SeparationBehavior(Flocker.LOW_INFLUENCE),
new CohesionBehavior(Flocker.LOW_INFLUENCE), new AlignmentBehavior(Flocker.HIGH_INFLUENCE));
return new Flocker(npc, flock, new SeparationBehavior(LOW_INFLUENCE),
new CohesionBehavior(LOW_INFLUENCE), new AlignmentBehavior(HIGH_INFLUENCE));
}

@EventHandler
Expand Down

0 comments on commit 8cba58f

Please sign in to comment.