From 8f1fc96da0f9c08a585797947994c162389bbaf6 Mon Sep 17 00:00:00 2001 From: Travis Watkins Date: Tue, 24 Apr 2012 18:59:55 -0500 Subject: Fixed per-world spawn limits. I have no idea how we missed this. --- src/main/java/net/minecraft/server/SpawnerCreature.java | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'src/main/java/net/minecraft/server/SpawnerCreature.java') diff --git a/src/main/java/net/minecraft/server/SpawnerCreature.java b/src/main/java/net/minecraft/server/SpawnerCreature.java index 4f4d6c0a..29ca51e1 100644 --- a/src/main/java/net/minecraft/server/SpawnerCreature.java +++ b/src/main/java/net/minecraft/server/SpawnerCreature.java @@ -95,13 +95,16 @@ public final class SpawnerCreature { // CraftBukkit start - use per-world spawn limits int limit = 0; - switch(enumcreaturetype) { - case MONSTER: - limit = world.getWorld().getMonsterSpawnLimit(); - case CREATURE: - limit = world.getWorld().getAnimalSpawnLimit(); - case WATER_CREATURE: - limit = world.getWorld().getWaterAnimalSpawnLimit(); + switch (enumcreaturetype) { + case MONSTER: + limit = world.getWorld().getMonsterSpawnLimit(); + break; + case CREATURE: + limit = world.getWorld().getAnimalSpawnLimit(); + break; + case WATER_CREATURE: + limit = world.getWorld().getWaterAnimalSpawnLimit(); + break; } if (limit == 0) { -- cgit v1.2.3