Bukkit/CraftBukkit — pull request #1086 by andrepl (2013-03-22 05:30:10+00:00)
Title: Delay firing EntityInteractEvent until arrow-button collision is confirmed. Fixes BUKKIT-3686

Currently when an arrow hits the same block that contains a wooden button, and EntityInteractEvent is fired for that button, even if the button itself isn't actually hit. This patch fixes it in a sort of strange way, but the only way I could come up with.

Leaky: https://bukkit.atlassian.net/browse/BUKKIT-3686