From aa90f2ff9cd645d1c5c2c6951845e39f38307053 Mon Sep 17 00:00:00 2001 From: Nathan Adams Date: Mon, 28 Nov 2011 05:18:41 +0000 Subject: [PATCH] Made Snowmen obey animal spawning rules (thanks Amaranth) --- src/main/java/net/minecraft/server/BlockPumpkin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/minecraft/server/BlockPumpkin.java b/src/main/java/net/minecraft/server/BlockPumpkin.java index c751e6e188..27212c838c 100644 --- a/src/main/java/net/minecraft/server/BlockPumpkin.java +++ b/src/main/java/net/minecraft/server/BlockPumpkin.java @@ -36,7 +36,7 @@ public class BlockPumpkin extends Block { public void a(World world, int i, int j, int k) { super.a(world, i, j, k); if (world.getTypeId(i, j - 1, k) == Block.SNOW_BLOCK.id && world.getTypeId(i, j - 2, k) == Block.SNOW_BLOCK.id) { - if (!world.isStatic) { + if (!world.isStatic && world.getServer().getServer().spawnAnimals) { // CraftBukkit - make snowmen obey spawning rules world.setTypeId(i, j, k, 0); world.setTypeId(i, j - 1, k, 0); world.setTypeId(i, j - 2, k, 0);