@@ -15,12 +15,12 @@
|
||||
|
||||
protected void n() {
|
||||
this.goalSelector.a(1, new PathfinderGoalFloat(this));
|
||||
@@ -397,9 +403,23 @@
|
||||
@@ -393,9 +399,23 @@
|
||||
Integer integer = (Integer) iblockdata.get(BlockCarrots.AGE);
|
||||
|
||||
if (integer == 0) {
|
||||
+ // CraftBukkit start
|
||||
+ if (org.bukkit.craftbukkit.event.CraftEventFactory.callEntityChangeBlockEvent(this.f, blockposition, Blocks.AIR.getBlockData()).isCancelled()) {
|
||||
+ if (org.bukkit.craftbukkit.event.CraftEventFactory.callEntityChangeBlockEvent(this.entity, blockposition, Blocks.AIR.getBlockData()).isCancelled()) {
|
||||
+ return;
|
||||
+ }
|
||||
+ // CraftBukkit end
|
||||
@@ -29,7 +29,7 @@
|
||||
} else {
|
||||
+ // CraftBukkit start
|
||||
+ if (org.bukkit.craftbukkit.event.CraftEventFactory.callEntityChangeBlockEvent(
|
||||
+ this.f,
|
||||
+ this.entity,
|
||||
+ blockposition,
|
||||
+ iblockdata.set(BlockCarrots.AGE, integer - 1)
|
||||
+ ).isCancelled()) {
|
||||
|
||||
Reference in New Issue
Block a user