diff --git a/src/main/java/net/minecraft/server/SpawnerCreature.java b/src/main/java/net/minecraft/server/SpawnerCreature.java index 4f4d6c0aa9..29ca51e133 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) {