mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-09 08:32:07 -07:00
Update to Minecraft 1.9
This commit is contained in:
@@ -1,25 +1,17 @@
|
||||
--- a/net/minecraft/server/EntityRabbit.java
|
||||
+++ b/net/minecraft/server/EntityRabbit.java
|
||||
@@ -21,6 +21,12 @@
|
||||
@@ -14,8 +14,14 @@
|
||||
this.setSize(0.4F, 0.5F);
|
||||
this.g = new EntityRabbit.ControllerJumpRabbit(this);
|
||||
this.moveController = new EntityRabbit.ControllerMoveRabbit(this);
|
||||
((Navigation) this.getNavigation()).a(true);
|
||||
+ this.initializePathFinderGoals(); // CraftBukkit - moved code
|
||||
+ this.b(0.0D);
|
||||
+ }
|
||||
+
|
||||
+ // CraftBukkit start - code from constructor
|
||||
+ public void initializePathFinderGoals(){
|
||||
this.navigation.a(2.5F);
|
||||
this.goalSelector.a(1, new PathfinderGoalFloat(this));
|
||||
this.goalSelector.a(1, new EntityRabbit.PathfinderGoalRabbitPanic(this, 1.33D));
|
||||
@@ -33,8 +39,8 @@
|
||||
this.goalSelector.a(11, new PathfinderGoalLookAtPlayer(this, EntityHuman.class, 10.0F));
|
||||
this.bm = new EntityRabbit.PathfinderGoalRabbitAvoidTarget(this, EntityWolf.class, 16.0F, 1.33D, 1.33D);
|
||||
this.goalSelector.a(4, this.bm);
|
||||
- this.b(0.0D);
|
||||
this.c(0.0D);
|
||||
}
|
||||
+ // CraftBukkit end
|
||||
|
||||
protected float bE() {
|
||||
return this.moveController.a() && this.moveController.e() > this.locY + 0.5D ? 0.5F : this.bt.b();
|
||||
protected void r() {
|
||||
this.goalSelector.a(1, new PathfinderGoalFloat(this));
|
||||
|
Reference in New Issue
Block a user