2015-01-05 03:32:01 +00:00
|
|
|
From 3248833db27889ab3afe2312cc520a0af7a0f644 Mon Sep 17 00:00:00 2001
|
2014-07-21 20:46:54 +00:00
|
|
|
From: Thinkofdeath <thethinkofdeath@gmail.com>
|
|
|
|
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
|
2014-11-28 01:17:45 +00:00
|
|
|
index 1fb976c..b0ecb35 100644
|
2014-07-21 20:46:54 +00:00
|
|
|
--- a/src/main/java/net/minecraft/server/DispenseBehaviorBonemeal.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/DispenseBehaviorBonemeal.java
|
2014-11-28 01:17:45 +00:00
|
|
|
@@ -18,7 +18,7 @@ final class DispenseBehaviorBonemeal extends DispenseBehaviorItem {
|
|
|
|
|
2014-07-21 20:46:54 +00:00
|
|
|
// CraftBukkit start
|
2014-11-28 01:17:45 +00:00
|
|
|
org.bukkit.block.Block block = world.getWorld().getBlockAt(isourceblock.getBlockPosition().getX(), isourceblock.getBlockPosition().getY(), isourceblock.getBlockPosition().getZ());
|
2014-07-21 20:46:54 +00:00
|
|
|
- CraftItemStack craftItem = CraftItemStack.asNewCraftStack(itemstack.getItem());
|
2014-11-28 01:17:45 +00:00
|
|
|
+ CraftItemStack craftItem = CraftItemStack.asCraftMirror(itemstack); // Spigot
|
2014-07-21 20:46:54 +00:00
|
|
|
|
|
|
|
BlockDispenseEvent event = new BlockDispenseEvent(block, craftItem.clone(), new org.bukkit.util.Vector(0, 0, 0));
|
|
|
|
if (!BlockDispenser.eventFired) {
|
|
|
|
--
|
2014-11-28 01:17:45 +00:00
|
|
|
2.1.0
|
2014-07-21 20:46:54 +00:00
|
|
|
|