diff options
author | Travis Watkins <amaranth@ubuntu.com> | 2013-05-03 06:36:12 -0500 |
---|---|---|
committer | Travis Watkins <amaranth@ubuntu.com> | 2013-05-03 06:38:44 -0500 |
commit | d9eb5865689b05e1002484b6255997b32e106dec (patch) | |
tree | 338f05e478ed9ee907c51b80e6b7f3b794a24f51 /src/main/java | |
parent | 28fb514a4de97047f5307590f8b966119b06f840 (diff) | |
download | craftbukkit-d9eb5865689b05e1002484b6255997b32e106dec.tar craftbukkit-d9eb5865689b05e1002484b6255997b32e106dec.tar.gz craftbukkit-d9eb5865689b05e1002484b6255997b32e106dec.tar.lz craftbukkit-d9eb5865689b05e1002484b6255997b32e106dec.tar.xz craftbukkit-d9eb5865689b05e1002484b6255997b32e106dec.zip |
Correct event handling for dispensing filled buckets. Fixes BUKKIT-4046
We only go through event creation and calling when dispensing filled buckets
if the bucket is able to place its liquid. However, the check for this is
incorrect so the event is not called when a block liquids can destroy is
in front of the dispenser. This commit fixes the check to match the checks
vanilla does when actually using the bucket.
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/net/minecraft/server/DispenseBehaviorFilledBucket.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/DispenseBehaviorFilledBucket.java b/src/main/java/net/minecraft/server/DispenseBehaviorFilledBucket.java index daf50a93..24395c3a 100644 --- a/src/main/java/net/minecraft/server/DispenseBehaviorFilledBucket.java +++ b/src/main/java/net/minecraft/server/DispenseBehaviorFilledBucket.java @@ -23,7 +23,7 @@ final class DispenseBehaviorFilledBucket extends DispenseBehaviorItem { int x = i + enumfacing.c(); int y = j + enumfacing.d(); int z = k + enumfacing.e(); - if (world.isEmpty(x, y, z) || world.getMaterial(x, y, z).isBuildable()) { + if (world.isEmpty(x, y, z) || !world.getMaterial(x, y, z).isBuildable()) { org.bukkit.block.Block block = world.getWorld().getBlockAt(i, j, k); CraftItemStack craftItem = CraftItemStack.asCraftMirror(itemstack); |