summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server
diff options
context:
space:
mode:
authorEvilSeph <evilseph@gmail.com>2012-02-08 18:28:41 -0500
committerEvilSeph <evilseph@gmail.com>2012-02-08 18:28:41 -0500
commit6d674569704a42b10d098513695dc82877cf6bc6 (patch)
tree7531019136e5a20e7bfc66a44c2275453722f054 /src/main/java/net/minecraft/server
parent8e7e07352327667040137e027d3e88fa80276ac0 (diff)
downloadcraftbukkit-6d674569704a42b10d098513695dc82877cf6bc6.tar
craftbukkit-6d674569704a42b10d098513695dc82877cf6bc6.tar.gz
craftbukkit-6d674569704a42b10d098513695dc82877cf6bc6.tar.lz
craftbukkit-6d674569704a42b10d098513695dc82877cf6bc6.tar.xz
craftbukkit-6d674569704a42b10d098513695dc82877cf6bc6.zip
Made BlockPumpkin report an appropriate SpawnReason.BUILD_SNOWMAN when a snowman is spawned.
Diffstat (limited to 'src/main/java/net/minecraft/server')
-rw-r--r--src/main/java/net/minecraft/server/BlockPumpkin.java2
1 files changed, 1 insertions, 1 deletions
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) {