@@ -11,10 +11,10 @@
|
||||
|
||||
public class PathfinderGoalRemoveBlock extends PathfinderGoalGotoTarget {
|
||||
|
||||
@@ -66,6 +70,14 @@
|
||||
@@ -81,6 +85,14 @@
|
||||
}
|
||||
|
||||
if (this.h > 60) {
|
||||
if (this.i > 60) {
|
||||
+ // CraftBukkit start - Step on eggs
|
||||
+ EntityInteractEvent event = new EntityInteractEvent(this.entity.getBukkitEntity(), CraftBlock.at(world, blockposition1));
|
||||
+ world.getServer().getPluginManager().callEvent((EntityInteractEvent) event);
|
||||
@@ -23,6 +23,6 @@
|
||||
+ return;
|
||||
+ }
|
||||
+ // CraftBukkit end
|
||||
world.setAir(blockposition1);
|
||||
world.a(blockposition1, false);
|
||||
if (!world.isClientSide) {
|
||||
for (int i = 0; i < 20; ++i) {
|
||||
|
||||
Reference in New Issue
Block a user