From 18c8e057b2f2979a6af6aaed5591220ed1d1dcb7 Mon Sep 17 00:00:00 2001 From: Thinkofdeath Date: Thu, 6 Feb 2014 22:01:07 +0000 Subject: [PATCH] Fix dispensing bone meal not having the correct data value --- ...one-meal-not-having-the-correct-data.patch | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 CraftBukkit-Patches/0107-Fix-dispensing-bone-meal-not-having-the-correct-data.patch diff --git a/CraftBukkit-Patches/0107-Fix-dispensing-bone-meal-not-having-the-correct-data.patch b/CraftBukkit-Patches/0107-Fix-dispensing-bone-meal-not-having-the-correct-data.patch new file mode 100644 index 000000000..9f17097de --- /dev/null +++ b/CraftBukkit-Patches/0107-Fix-dispensing-bone-meal-not-having-the-correct-data.patch @@ -0,0 +1,22 @@ +From 8cc9273eba7be5873699da83c40349ed4f100543 Mon Sep 17 00:00:00 2001 +From: Thinkofdeath +Date: Thu, 6 Feb 2014 21:59:20 +0000 +Subject: [PATCH] Fix dispensing bone meal not having the correct data value + + +diff --git a/src/main/java/net/minecraft/server/DispenseBehaviorBonemeal.java b/src/main/java/net/minecraft/server/DispenseBehaviorBonemeal.java +index 92b3789..a164627 100644 +--- a/src/main/java/net/minecraft/server/DispenseBehaviorBonemeal.java ++++ b/src/main/java/net/minecraft/server/DispenseBehaviorBonemeal.java +@@ -21,7 +21,7 @@ final class DispenseBehaviorBonemeal extends DispenseBehaviorItem { + + // CraftBukkit start + org.bukkit.block.Block block = world.getWorld().getBlockAt(isourceblock.getBlockX(), isourceblock.getBlockY(), isourceblock.getBlockZ()); +- CraftItemStack craftItem = CraftItemStack.asNewCraftStack(itemstack.getItem()); ++ CraftItemStack craftItem = CraftItemStack.asCraftMirror(itemstack); + + BlockDispenseEvent event = new BlockDispenseEvent(block, craftItem.clone(), new org.bukkit.util.Vector(0, 0, 0)); + if (!BlockDispenser.eventFired) { +-- +1.8.4.msysgit.0 +