Made Slimes spawn less often in FLAT worlds. Fixes BUKKIT-1441

This commit is contained in:
EvilSeph 2012-04-02 16:04:31 -04:00
parent 7594c91c84
commit 81102479a7

View File

@ -152,6 +152,9 @@ public final class SpawnerCreature {
return i; return i;
} }
// CraftBukkit - made slimes spawn less often in FLAT worlds.
if (entityliving instanceof EntitySlime && world.worldData.getType() == WorldType.FLAT && world.random.nextInt(200) == 0) return 0;
entityliving.setPositionRotation((double) f, (double) f1, (double) f2, world.random.nextFloat() * 360.0F, 0.0F); entityliving.setPositionRotation((double) f, (double) f1, (double) f2, world.random.nextFloat() * 360.0F, 0.0F);
if (entityliving.canSpawn()) { if (entityliving.canSpawn()) {
++j2; ++j2;