From 8cba58fddebdb0d1765d10e54b2a887455929418 Mon Sep 17 00:00:00 2001 From: "Alex \"mcmonkey\" Goodwin" Date: Sun, 12 May 2019 02:55:55 -0700 Subject: [PATCH] fix for citizens update --- .../scripts/commands/entity/WalkCommandCitizensEvents.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/plugin/src/main/java/net/aufdemrand/denizen/scripts/commands/entity/WalkCommandCitizensEvents.java b/plugin/src/main/java/net/aufdemrand/denizen/scripts/commands/entity/WalkCommandCitizensEvents.java index d5f5062daf..99ea6e7aab 100644 --- a/plugin/src/main/java/net/aufdemrand/denizen/scripts/commands/entity/WalkCommandCitizensEvents.java +++ b/plugin/src/main/java/net/aufdemrand/denizen/scripts/commands/entity/WalkCommandCitizensEvents.java @@ -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