PaperMC/CraftBukkit-Patches/0070-Fix-dispensing-bone-meal-not-having-the-correct-data.patch

23 lines
1.2 KiB
Diff
Raw Normal View History

2016-03-01 01:23:45 +01:00
From 3fec87491b69ba4cc3faaad819eb9c2fb9546836 Mon Sep 17 00:00:00 2001
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 12:36:22 +01:00
diff --git a/src/main/java/net/minecraft/server/DispenserRegistry.java b/src/main/java/net/minecraft/server/DispenserRegistry.java
2016-02-29 22:33:06 +01:00
index f2dc326..d7bea3d 100644
2015-02-28 12:36:22 +01:00
--- a/src/main/java/net/minecraft/server/DispenserRegistry.java
+++ b/src/main/java/net/minecraft/server/DispenserRegistry.java
2016-02-29 22:33:06 +01:00
@@ -442,7 +442,7 @@ public class DispenserRegistry {
2015-02-28 12:36:22 +01: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) {
--
2016-02-29 22:33:06 +01:00
2.5.0