From 81102479a7a6edfb4f7137b9446ac9edb041b240 Mon Sep 17 00:00:00 2001 From: EvilSeph Date: Mon, 2 Apr 2012 16:04:31 -0400 Subject: [PATCH] Made Slimes spawn less often in FLAT worlds. Fixes BUKKIT-1441 --- src/main/java/net/minecraft/server/SpawnerCreature.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/net/minecraft/server/SpawnerCreature.java b/src/main/java/net/minecraft/server/SpawnerCreature.java index 48a710b7b1..071fde9fdb 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;