mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-06 02:35:49 +01:00
Made Snowmen obey animal spawning rules (thanks Amaranth)
This commit is contained in:
parent
fe3756f7a0
commit
aa90f2ff9c
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue