2015-05-25 12:05:40 +00:00
|
|
|
From 558562c999dd7880361be5b35f8669411cfb36b7 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
|
|
|
|
|
|
|
|
|
2015-02-28 11:36:22 +00:00
|
|
|
diff --git a/src/main/java/net/minecraft/server/DispenserRegistry.java b/src/main/java/net/minecraft/server/DispenserRegistry.java
|
2015-05-25 12:05:40 +00:00
|
|
|
index 37fd3f2..f91c33d 100644
|
2015-02-28 11:36:22 +00:00
|
|
|
--- a/src/main/java/net/minecraft/server/DispenserRegistry.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/DispenserRegistry.java
|
|
|
|
@@ -463,7 +463,7 @@ public class DispenserRegistry {
|
2014-07-21 20:46:54 +00:00
|
|
|
|
2015-02-28 11:36:22 +00:00
|
|
|
// 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); // Spigot
|
|
|
|
|
|
|
|
BlockDispenseEvent event = new BlockDispenseEvent(block, craftItem.clone(), new org.bukkit.util.Vector(0, 0, 0));
|
|
|
|
if (!BlockDispenser.eventFired) {
|
2014-07-21 20:46:54 +00:00
|
|
|
--
|
2015-05-09 20:23:26 +00:00
|
|
|
2.1.4
|
2014-07-21 20:46:54 +00:00
|
|
|
|