Fix dispensing bone meal not having the correct data value

By: Thinkofdeath <thethinkofdeath@gmail.com>
This commit is contained in:
CraftBukkit/Spigot 2014-02-06 21:59:20 +00:00
parent e43121c658
commit c0ef3e197d

View file

@ -304,7 +304,7 @@
+ // CraftBukkit start
+ org.bukkit.block.Block block = world.getWorld().getBlockAt(isourceblock.getBlockPosition().getX(), isourceblock.getBlockPosition().getY(), isourceblock.getBlockPosition().getZ());
+ 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) {