From 5ed1418bb41c6494979b54391c00bb70c4996736 Mon Sep 17 00:00:00 2001 From: Travis Watkins Date: Fri, 3 May 2013 06:45:11 -0500 Subject: [PATCH] Pass correct block when dispensing empty buckets. Fixes BUKKIT-3668 --- .../net/minecraft/server/DispenseBehaviorEmptyBucket.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/minecraft/server/DispenseBehaviorEmptyBucket.java b/src/main/java/net/minecraft/server/DispenseBehaviorEmptyBucket.java index 8f7e09b273..1ed656ab10 100644 --- a/src/main/java/net/minecraft/server/DispenseBehaviorEmptyBucket.java +++ b/src/main/java/net/minecraft/server/DispenseBehaviorEmptyBucket.java @@ -32,10 +32,10 @@ final class DispenseBehaviorEmptyBucket extends DispenseBehaviorItem { } // CraftBukkit start - org.bukkit.block.Block block = world.getWorld().getBlockAt(i, j, k); + org.bukkit.block.Block block = world.getWorld().getBlockAt(isourceblock.getBlockX(), isourceblock.getBlockY(), isourceblock.getBlockZ()); CraftItemStack craftItem = CraftItemStack.asCraftMirror(itemstack); - BlockDispenseEvent event = new BlockDispenseEvent(block, craftItem.clone(), new org.bukkit.util.Vector(0, 0, 0)); + BlockDispenseEvent event = new BlockDispenseEvent(block, craftItem.clone(), new org.bukkit.util.Vector(i, j, k)); if (!BlockDispenser.eventFired) { world.getServer().getPluginManager().callEvent(event); }