Made BlockPumpkin report an appropriate SpawnReason.BUILD_SNOWMAN when a snowman is spawned.

This commit is contained in:
EvilSeph 2012-02-08 18:28:41 -05:00
parent 8e7e073523
commit 6d67456970

View File

@ -43,7 +43,7 @@ public class BlockPumpkin extends Block {
EntitySnowman entitysnowman = new EntitySnowman(world);
entitysnowman.setPositionRotation((double) i + 0.5D, (double) j - 1.95D, (double) k + 0.5D, 0.0F, 0.0F);
world.addEntity(entitysnowman);
world.addEntity(entitysnowman, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.BUILD_SNOWMAN); // CraftBukkit
}
for (int l = 0; l < 120; ++l) {