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/ItemBlock.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/ItemBlock.java')
-rw-r--r-- | src/main/java/net/minecraft/server/ItemBlock.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/ItemBlock.java b/src/main/java/net/minecraft/server/ItemBlock.java index 1f65bf73..bf9af158 100644 --- a/src/main/java/net/minecraft/server/ItemBlock.java +++ b/src/main/java/net/minecraft/server/ItemBlock.java @@ -68,7 +68,7 @@ public class ItemBlock extends Item { world.suppressPhysics = true; world.setTypeIdAndData(i, j, k, id, this.filterData(itemstack.getData())); - BlockPlaceEvent event = CraftEventFactory.callBlockPlaceEvent(world, entityhuman, replacedBlockState, clickedX, clickedY, clickedZ, block); + BlockPlaceEvent event = CraftEventFactory.callBlockPlaceEvent(world, entityhuman, replacedBlockState, clickedX, clickedY, clickedZ); id = world.getTypeId(i, j, k); int data = world.getData(i, j, k); replacedBlockState.update(true); |