@@ -1,21 +1,30 @@
|
||||
--- a/net/minecraft/server/EntityRabbit.java
|
||||
+++ b/net/minecraft/server/EntityRabbit.java
|
||||
@@ -17,8 +17,14 @@
|
||||
this.setSize(0.4F, 0.5F);
|
||||
this.h = new EntityRabbit.ControllerJumpRabbit(this);
|
||||
@@ -16,8 +16,14 @@
|
||||
super(entitytypes, world);
|
||||
this.bt = 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);
|
||||
this.d(0.0D);
|
||||
}
|
||||
+ // CraftBukkit end
|
||||
|
||||
protected void n() {
|
||||
this.goalSelector.a(1, new PathfinderGoalFloat(this));
|
||||
@@ -393,9 +399,23 @@
|
||||
@Override
|
||||
protected void initPathfinder() {
|
||||
@@ -285,7 +291,7 @@
|
||||
if (i == 99) {
|
||||
this.getAttributeInstance(GenericAttributes.ARMOR).setValue(8.0D);
|
||||
this.goalSelector.a(4, new EntityRabbit.PathfinderGoalKillerRabbitMeleeAttack(this));
|
||||
- this.targetSelector.a(1, (new PathfinderGoalHurtByTarget(this, new Class[0])).a());
|
||||
+ this.targetSelector.a(1, (new PathfinderGoalHurtByTarget(this, new Class[0])).a(new Class[0])); // CraftBukkit - decompile error
|
||||
this.targetSelector.a(2, new PathfinderGoalNearestAttackableTarget<>(this, EntityHuman.class, true));
|
||||
this.targetSelector.a(2, new PathfinderGoalNearestAttackableTarget<>(this, EntityWolf.class, true));
|
||||
if (!this.hasCustomName()) {
|
||||
@@ -413,9 +419,23 @@
|
||||
Integer integer = (Integer) iblockdata.get(BlockCarrots.AGE);
|
||||
|
||||
if (integer == 0) {
|
||||
@@ -25,7 +34,7 @@
|
||||
+ }
|
||||
+ // CraftBukkit end
|
||||
world.setTypeAndData(blockposition, Blocks.AIR.getBlockData(), 2);
|
||||
world.setAir(blockposition, true);
|
||||
world.b(blockposition, true);
|
||||
} else {
|
||||
+ // CraftBukkit start
|
||||
+ if (org.bukkit.craftbukkit.event.CraftEventFactory.callEntityChangeBlockEvent(
|
||||
|
||||
Reference in New Issue
Block a user