diff options
author | Travis Watkins <amaranth@ubuntu.com> | 2013-05-03 06:45:11 -0500 |
---|---|---|
committer | Travis Watkins <amaranth@ubuntu.com> | 2013-05-03 06:45:11 -0500 |
commit | 5ed1418bb41c6494979b54391c00bb70c4996736 (patch) | |
tree | f47f8537557b8cb868042569ed58a96490789180 /src/main/java/net/minecraft/server/DispenseBehaviorEmptyBucket.java | |
parent | d9eb5865689b05e1002484b6255997b32e106dec (diff) | |
download | craftbukkit-5ed1418bb41c6494979b54391c00bb70c4996736.tar craftbukkit-5ed1418bb41c6494979b54391c00bb70c4996736.tar.gz craftbukkit-5ed1418bb41c6494979b54391c00bb70c4996736.tar.lz craftbukkit-5ed1418bb41c6494979b54391c00bb70c4996736.tar.xz craftbukkit-5ed1418bb41c6494979b54391c00bb70c4996736.zip |
Pass correct block when dispensing empty buckets. Fixes BUKKIT-3668
Diffstat (limited to 'src/main/java/net/minecraft/server/DispenseBehaviorEmptyBucket.java')
-rw-r--r-- | src/main/java/net/minecraft/server/DispenseBehaviorEmptyBucket.java | 4 |
1 files 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 8f7e09b2..1ed656ab 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); } |