Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-21 05:50:05 +01:00
18 Zeilen
605 B
Diff
18 Zeilen
605 B
Diff
--- a/net/minecraft/server/EntityRabbit.java
|
|
+++ b/net/minecraft/server/EntityRabbit.java
|
|
@@ -16,8 +16,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));
|