2015-05-25 18:37:24 +08:00
|
|
|
--- a/net/minecraft/server/EntityRabbit.java
|
|
|
|
+++ b/net/minecraft/server/EntityRabbit.java
|
2016-03-01 05:32:46 +08:00
|
|
|
@@ -14,8 +14,14 @@
|
|
|
|
this.setSize(0.4F, 0.5F);
|
2015-02-27 06:41:06 +08:00
|
|
|
this.g = new EntityRabbit.ControllerJumpRabbit(this);
|
|
|
|
this.moveController = new EntityRabbit.ControllerMoveRabbit(this);
|
2014-12-07 05:45:51 +08:00
|
|
|
+ this.initializePathFinderGoals(); // CraftBukkit - moved code
|
|
|
|
+ }
|
2015-02-27 06:41:06 +08:00
|
|
|
+
|
2014-12-07 05:45:51 +08:00
|
|
|
+ // CraftBukkit start - code from constructor
|
|
|
|
+ public void initializePathFinderGoals(){
|
2016-03-01 05:32:46 +08:00
|
|
|
this.c(0.0D);
|
2014-12-07 05:45:51 +08:00
|
|
|
}
|
|
|
|
+ // CraftBukkit end
|
|
|
|
|
2016-03-01 05:32:46 +08:00
|
|
|
protected void r() {
|
|
|
|
this.goalSelector.a(1, new PathfinderGoalFloat(this));
|