summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server/SpawnerCreature.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/net/minecraft/server/SpawnerCreature.java')
-rw-r--r--src/main/java/net/minecraft/server/SpawnerCreature.java17
1 files changed, 10 insertions, 7 deletions
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) {