summaryrefslogtreecommitdiffstats
path: root/nms-patches/EntityRabbit.patch
blob: e32bf767bf6bd94724415a5d2a7ca882869d3a93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- a/net/minecraft/server/EntityRabbit.java
+++ b/net/minecraft/server/EntityRabbit.java
@@ -14,8 +14,14 @@
         this.setSize(0.4F, 0.5F);
         this.g = new EntityRabbit.ControllerJumpRabbit(this);
         this.moveController = new EntityRabbit.ControllerMoveRabbit(this);
+        this.initializePathFinderGoals(); // CraftBukkit - moved code
+    }
+
+    // CraftBukkit start - code from constructor
+    public void initializePathFinderGoals(){
         this.c(0.0D);
     }
+    // CraftBukkit end
 
     protected void r() {
         this.goalSelector.a(1, new PathfinderGoalFloat(this));