diff options
author | EvilSeph <evilseph@gmail.com> | 2012-04-02 16:04:31 -0400 |
---|---|---|
committer | EvilSeph <evilseph@gmail.com> | 2012-04-02 17:10:17 -0400 |
commit | 81102479a7a6edfb4f7137b9446ac9edb041b240 (patch) | |
tree | e635327499ec0678c579e30d11ee87eb9fad3fae | |
parent | 7594c91c84034ab289b4549a73db74dcd18c9e4a (diff) | |
download | craftbukkit-81102479a7a6edfb4f7137b9446ac9edb041b240.tar craftbukkit-81102479a7a6edfb4f7137b9446ac9edb041b240.tar.gz craftbukkit-81102479a7a6edfb4f7137b9446ac9edb041b240.tar.lz craftbukkit-81102479a7a6edfb4f7137b9446ac9edb041b240.tar.xz craftbukkit-81102479a7a6edfb4f7137b9446ac9edb041b240.zip |
Made Slimes spawn less often in FLAT worlds. Fixes BUKKIT-1441
-rw-r--r-- | src/main/java/net/minecraft/server/SpawnerCreature.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/net/minecraft/server/SpawnerCreature.java b/src/main/java/net/minecraft/server/SpawnerCreature.java index 48a710b7..071fde9f 100644 --- a/src/main/java/net/minecraft/server/SpawnerCreature.java +++ b/src/main/java/net/minecraft/server/SpawnerCreature.java @@ -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; |