diff options
author | Feildmaster <admin@feildmaster.com> | 2012-02-18 09:14:44 -0600 |
---|---|---|
committer | EvilSeph <evilseph@gmail.com> | 2012-02-23 18:27:22 -0500 |
commit | d7f6d2d929b1ec1d0da53e5262756e0e1ee85977 (patch) | |
tree | 568007abdf540939b18d76d987e80b11a08d73f5 /src/main/java/net/minecraft/server/ItemReed.java | |
parent | 70c5f06425f81470406329473ffb55e9c8cc60c5 (diff) | |
download | craftbukkit-d7f6d2d929b1ec1d0da53e5262756e0e1ee85977.tar craftbukkit-d7f6d2d929b1ec1d0da53e5262756e0e1ee85977.tar.gz craftbukkit-d7f6d2d929b1ec1d0da53e5262756e0e1ee85977.tar.lz craftbukkit-d7f6d2d929b1ec1d0da53e5262756e0e1ee85977.tar.xz craftbukkit-d7f6d2d929b1ec1d0da53e5262756e0e1ee85977.zip |
[Bleeding] Use player.getItemInHand(), instead of a new ItemStack. Addresses BUKKIT-767
Diffstat (limited to 'src/main/java/net/minecraft/server/ItemReed.java')
-rw-r--r-- | src/main/java/net/minecraft/server/ItemReed.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/ItemReed.java b/src/main/java/net/minecraft/server/ItemReed.java index ea17b25e..c31128d9 100644 --- a/src/main/java/net/minecraft/server/ItemReed.java +++ b/src/main/java/net/minecraft/server/ItemReed.java @@ -68,7 +68,7 @@ public class ItemReed extends Item { * replace this with. */ if (world.setRawTypeId(i, j, k, this.id)) { // <-- world.e does this to place the block - BlockPlaceEvent event = CraftEventFactory.callBlockPlaceEvent(world, entityhuman, replacedBlockState, clickedX, clickedY, clickedZ, block); + BlockPlaceEvent event = CraftEventFactory.callBlockPlaceEvent(world, entityhuman, replacedBlockState, clickedX, clickedY, clickedZ); if (event.isCancelled() || !event.canBuild()) { // CraftBukkit - undo; this only has reed, repeater and pie blocks |