SPIGOT-5968: Killer rabbits can't be set to the non-killer rabbit behavior

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2020-07-09 09:04:11 +10:00
parent 7f2d17c68a
commit 666f651058
2 changed files with 7 additions and 2 deletions

View File

@@ -43,6 +43,7 @@ public class CraftRabbit extends CraftAnimals implements Rabbit {
World world = ((CraftWorld) this.getWorld()).getHandle();
entity.goalSelector = new PathfinderGoalSelector(world.getMethodProfilerSupplier());
entity.targetSelector = new PathfinderGoalSelector(world.getMethodProfilerSupplier());
entity.initPathfinder();
entity.initializePathFinderGoals();
}