diff options
author | Travis Watkins <amaranth@ubuntu.com> | 2012-11-14 13:27:45 -0600 |
---|---|---|
committer | Travis Watkins <amaranth@ubuntu.com> | 2012-11-14 13:27:45 -0600 |
commit | c2bae0bebb6e036514653514e558abfe2f4bba76 (patch) | |
tree | 0f3d987586948e63f88594bc45989214a6b519b0 /src/main/java/net | |
parent | 188a71ad5b148f9534455c013211190e839ee3f1 (diff) | |
download | craftbukkit-c2bae0bebb6e036514653514e558abfe2f4bba76.tar craftbukkit-c2bae0bebb6e036514653514e558abfe2f4bba76.tar.gz craftbukkit-c2bae0bebb6e036514653514e558abfe2f4bba76.tar.lz craftbukkit-c2bae0bebb6e036514653514e558abfe2f4bba76.tar.xz craftbukkit-c2bae0bebb6e036514653514e558abfe2f4bba76.zip |
Add crafting result slot for sheep breeding. Fixes BUKKIT-2926
Sheep now use the crafting system when breeding to determine what color
their baby should be. This triggers an event but the event wants the
crafting inventory to have a result slot which sheep do not have. This
event could be useful for plugins to control the output of sheep breeding
so instead of disabling it we add a result slot so the event fires without
issue.
Diffstat (limited to 'src/main/java/net')
-rw-r--r-- | src/main/java/net/minecraft/server/EntitySheep.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/net/minecraft/server/EntitySheep.java b/src/main/java/net/minecraft/server/EntitySheep.java index 1d8a94bb..5ad86c0d 100644 --- a/src/main/java/net/minecraft/server/EntitySheep.java +++ b/src/main/java/net/minecraft/server/EntitySheep.java @@ -32,6 +32,7 @@ public class EntitySheep extends EntityAnimal { this.goalSelector.a(8, new PathfinderGoalRandomLookaround(this)); this.e.setItem(0, new ItemStack(Item.INK_SACK, 1, 0)); this.e.setItem(1, new ItemStack(Item.INK_SACK, 1, 0)); + this.e.resultInventory = new InventoryCraftResult(); // CraftBukkit - add result slot for event } protected boolean be() { |