diff options
author | Nathan Adams <dinnerbone@dinnerbone.com> | 2011-11-28 05:18:41 +0000 |
---|---|---|
committer | Nathan Adams <dinnerbone@dinnerbone.com> | 2011-11-28 05:18:41 +0000 |
commit | aa90f2ff9cd645d1c5c2c6951845e39f38307053 (patch) | |
tree | 1b9a9ab9623496acfa6e44d4ef96482a37376570 | |
parent | fe3756f7a016b6d4013f024ba1eb7d8e70f42e3b (diff) | |
download | craftbukkit-aa90f2ff9cd645d1c5c2c6951845e39f38307053.tar craftbukkit-aa90f2ff9cd645d1c5c2c6951845e39f38307053.tar.gz craftbukkit-aa90f2ff9cd645d1c5c2c6951845e39f38307053.tar.lz craftbukkit-aa90f2ff9cd645d1c5c2c6951845e39f38307053.tar.xz craftbukkit-aa90f2ff9cd645d1c5c2c6951845e39f38307053.zip |
Made Snowmen obey animal spawning rules (thanks Amaranth)
-rw-r--r-- | src/main/java/net/minecraft/server/BlockPumpkin.java | 2 |
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 c751e6e1..27212c83 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); |