diff options
author | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-09-16 20:10:11 +0100 |
---|---|---|
committer | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-09-16 20:10:11 +0100 |
commit | 900c541246e2b480b63be60e71a4a9a8acc61d77 (patch) | |
tree | 763d7de40757a8115b1c686f7c9ecefd19a8b119 /src/main/java/net/minecraft/server/ItemReed.java | |
parent | 94d1338febfe844faa42179e47ddc5d3432b0843 (diff) | |
download | craftbukkit-900c541246e2b480b63be60e71a4a9a8acc61d77.tar craftbukkit-900c541246e2b480b63be60e71a4a9a8acc61d77.tar.gz craftbukkit-900c541246e2b480b63be60e71a4a9a8acc61d77.tar.lz craftbukkit-900c541246e2b480b63be60e71a4a9a8acc61d77.tar.xz craftbukkit-900c541246e2b480b63be60e71a4a9a8acc61d77.zip |
Bunchafixes which may or may not have any end result
Diffstat (limited to 'src/main/java/net/minecraft/server/ItemReed.java')
-rw-r--r-- | src/main/java/net/minecraft/server/ItemReed.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main/java/net/minecraft/server/ItemReed.java b/src/main/java/net/minecraft/server/ItemReed.java index cb4c6907..b0bd521b 100644 --- a/src/main/java/net/minecraft/server/ItemReed.java +++ b/src/main/java/net/minecraft/server/ItemReed.java @@ -80,8 +80,11 @@ public class ItemReed extends Item { world.update(i, j, k, this.id); // <-- world.setTypeId does this on success (tell the world) // CraftBukkit end - Block.byId[this.id].postPlace(world, i, j, k, l); - Block.byId[this.id].postPlace(world, i, j, k, entityhuman); + if (world.getTypeId(i, j, k) == this.id) { + Block.byId[this.id].postPlace(world, i, j, k, l); + Block.byId[this.id].postPlace(world, i, j, k, entityhuman); + } + world.makeSound((double) ((float) i + 0.5F), (double) ((float) j + 0.5F), (double) ((float) k + 0.5F), block.stepSound.getName(), (block.stepSound.getVolume1() + 1.0F) / 2.0F, block.stepSound.getVolume2() * 0.8F); --itemstack.count; } |