Bukkit/CraftBukkit — pull request #713 by holic (2012-03-09 08:42:44+00:00)
Title: Obey result of entity spawn when consuming blocks, fixes BUKKIT-1094

Currently, if an iron golem or snowman is spawned and the event cancelled or otherwise prevented (world setting, server setting, etc.), the blocks used are still consumed. This pull will cause the related blocks to be consumed only if the entity spawns successfully.

https://bukkit.atlassian.net/browse/BUKKIT-1094