13
0
geforkt von Mirrors/Paper

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

Dieser Commit ist enthalten in:
EvilSeph 2012-04-02 16:04:31 -04:00
Ursprung 7594c91c84
Commit 81102479a7

Datei anzeigen

@ -152,6 +152,9 @@ public final class SpawnerCreature {
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);
if (entityliving.canSpawn()) {
++j2;