Bukkit/CraftBukkit — pull request #567 by wilsonsd (2011-12-02 22:41:09+00:00)
Title: Fix for BUKKIT-89

Here's a fix to the issue described at http://bukkit.atlassian.net/browse/BUKKIT-89. If you place a TNT block in a powered location, the vanilla server code replaces the TNT block with a primed TNT entity. But it does this in the BlockTNT.onPlace method. So this all happens before Bukkit gets a chance to veto the block placement. (See the order of things in ItemBlock.a(IS, EH, W, i, i, i).) Moving the code in BlockTNT.onPlace to BlockTNT.postPlace fixes this.