summaryrefslogtreecommitdiffstats
path: root/src/main/java/net
diff options
context:
space:
mode:
authormbax <matt@phozop.net>2013-07-02 14:00:57 -0400
committermbax <matt@phozop.net>2013-07-02 15:01:57 -0400
commit65ccff63407dca3bd606a3d4c67eb82c86045c45 (patch)
treea2ba13d7138554519bb2e9020fb368a0349620e4 /src/main/java/net
parent3a9622cbdc495203ed766e7d10c7d6cc911aaaa5 (diff)
downloadcraftbukkit-65ccff63407dca3bd606a3d4c67eb82c86045c45.tar
craftbukkit-65ccff63407dca3bd606a3d4c67eb82c86045c45.tar.gz
craftbukkit-65ccff63407dca3bd606a3d4c67eb82c86045c45.tar.lz
craftbukkit-65ccff63407dca3bd606a3d4c67eb82c86045c45.tar.xz
craftbukkit-65ccff63407dca3bd606a3d4c67eb82c86045c45.zip
Regrow sheep wool on grass consumption. Resolves BUKKIT-4405
Diffstat (limited to 'src/main/java/net')
-rw-r--r--src/main/java/net/minecraft/server/PathfinderGoalEatTile.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/net/minecraft/server/PathfinderGoalEatTile.java b/src/main/java/net/minecraft/server/PathfinderGoalEatTile.java
index 3048b694..c9483975 100644
--- a/src/main/java/net/minecraft/server/PathfinderGoalEatTile.java
+++ b/src/main/java/net/minecraft/server/PathfinderGoalEatTile.java
@@ -58,7 +58,7 @@ public class PathfinderGoalEatTile extends PathfinderGoal {
// CraftBukkit start
if (!CraftEventFactory.callEntityChangeBlockEvent(this.b.getBukkitEntity(), this.b.world.getWorld().getBlockAt(i, j, k), Material.AIR).isCancelled()) {
this.c.setAir(i, j, k, false);
- this.b.aK();
+ this.b.n();
}
// CraftBukkit end
} else if (this.c.getTypeId(i, j - 1, k) == Block.GRASS.id) {
@@ -66,7 +66,7 @@ public class PathfinderGoalEatTile extends PathfinderGoal {
if (!CraftEventFactory.callEntityChangeBlockEvent(this.b.getBukkitEntity(), this.b.world.getWorld().getBlockAt(i, j - 1, k), Material.DIRT).isCancelled()) {
this.c.triggerEffect(2001, i, j - 1, k, Block.GRASS.id);
this.c.setTypeIdAndData(i, j - 1, k, Block.DIRT.id, 0, 2);
- this.b.aK();
+ this.b.n();
}
// CraftBukkit end
}