mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-14 11:45:52 -07:00
Update to Minecraft 1.16.2
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
--- a/net/minecraft/server/EntityRabbit.java
|
||||
+++ b/net/minecraft/server/EntityRabbit.java
|
||||
@@ -17,11 +17,17 @@
|
||||
@@ -17,8 +17,14 @@
|
||||
super(entitytypes, world);
|
||||
this.bp = new EntityRabbit.ControllerJumpRabbit(this);
|
||||
this.bi = new EntityRabbit.ControllerJumpRabbit(this);
|
||||
this.moveController = new EntityRabbit.ControllerMoveRabbit(this);
|
||||
+ this.initializePathFinderGoals(); // CraftBukkit - moved code
|
||||
+ }
|
||||
@@ -14,11 +14,7 @@
|
||||
+ // CraftBukkit end
|
||||
|
||||
@Override
|
||||
- protected void initPathfinder() {
|
||||
+ public void initPathfinder() {
|
||||
this.goalSelector.a(1, new PathfinderGoalFloat(this));
|
||||
this.goalSelector.a(1, new EntityRabbit.PathfinderGoalRabbitPanic(this, 2.2D));
|
||||
this.goalSelector.a(2, new PathfinderGoalBreed(this, 0.8D));
|
||||
public void initPathfinder() {
|
||||
@@ -285,7 +291,7 @@
|
||||
if (i == 99) {
|
||||
this.getAttributeInstance(GenericAttributes.ARMOR).setValue(8.0D);
|
||||
|
Reference in New Issue
Block a user