mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-24 03:25:15 +01:00
Made Slimes spawn less often in FLAT worlds. Fixes BUKKIT-1441
This commit is contained in:
parent
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;
|
||||||
|
Loading…
Reference in New Issue
Block a user