diff options
author | Thinkofdeath <thinkofdeath@spigotmc.org> | 2016-03-01 21:37:08 +0000 |
---|---|---|
committer | Thinkofdeath <thinkofdeath@spigotmc.org> | 2016-03-01 21:37:08 +0000 |
commit | 1be3bd058faf4fc0f2a351e92a99786e53f770b9 (patch) | |
tree | 7cf59d52b00b57e97bbdc68ebe947ce9ef9e3c95 /nms-patches/ItemFlintAndSteel.patch | |
parent | 4ca1f899071572fbd5d89fe52aeaeec1e474e920 (diff) | |
download | craftbukkit-1be3bd058faf4fc0f2a351e92a99786e53f770b9.tar craftbukkit-1be3bd058faf4fc0f2a351e92a99786e53f770b9.tar.gz craftbukkit-1be3bd058faf4fc0f2a351e92a99786e53f770b9.tar.lz craftbukkit-1be3bd058faf4fc0f2a351e92a99786e53f770b9.tar.xz craftbukkit-1be3bd058faf4fc0f2a351e92a99786e53f770b9.zip |
SPIGOT-1607: Fix BlockPlaceEvent and BlockMultiPlaceEvent sometimes showing the wrong item used
Diffstat (limited to 'nms-patches/ItemFlintAndSteel.patch')
-rw-r--r-- | nms-patches/ItemFlintAndSteel.patch | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nms-patches/ItemFlintAndSteel.patch b/nms-patches/ItemFlintAndSteel.patch index 20d31fe8..d6fa0787 100644 --- a/nms-patches/ItemFlintAndSteel.patch +++ b/nms-patches/ItemFlintAndSteel.patch @@ -33,7 +33,7 @@ world.setTypeAndData(blockposition, Blocks.FIRE.getBlockData(), 11); + + // CraftBukkit start -+ org.bukkit.event.block.BlockPlaceEvent placeEvent = CraftEventFactory.callBlockPlaceEvent(world, entityhuman, blockState, clicked.getX(), clicked.getY(), clicked.getZ()); ++ org.bukkit.event.block.BlockPlaceEvent placeEvent = CraftEventFactory.callBlockPlaceEvent(world, entityhuman, enumhand, blockState, clicked.getX(), clicked.getY(), clicked.getZ()); + + if (placeEvent.isCancelled() || !placeEvent.canBuild()) { + placeEvent.getBlockPlaced().setTypeIdAndData(0, (byte) 0, false); |