Bukkit/CraftBukkit — pull request #994 by escortkeel (2013-01-15 21:37:18+00:00)
Title: Fix potential CCE in setTypeId. Fixes BUKKIT-3428

Suppose block "x" has type 54 (chest). Calling "x.setTypeId(68)" (wall_sign) would result in a CCE related to the fact that the block id number is changed before the old TileEntity is removed.