geforkt von Mirrors/Paper
Made Slimes spawn less often in FLAT worlds. Fixes BUKKIT-1441
Dieser Commit ist enthalten in:
Ursprung
7594c91c84
Commit
81102479a7
@ -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;
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren