From 6d674569704a42b10d098513695dc82877cf6bc6 Mon Sep 17 00:00:00 2001 From: EvilSeph Date: Wed, 8 Feb 2012 18:28:41 -0500 Subject: Made BlockPumpkin report an appropriate SpawnReason.BUILD_SNOWMAN when a snowman is spawned. --- src/main/java/net/minecraft/server/BlockPumpkin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/net') diff --git a/src/main/java/net/minecraft/server/BlockPumpkin.java b/src/main/java/net/minecraft/server/BlockPumpkin.java index 8babb968..2ee85357 100644 --- a/src/main/java/net/minecraft/server/BlockPumpkin.java +++ b/src/main/java/net/minecraft/server/BlockPumpkin.java @@ -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) { -- cgit v1.2.3