summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTravis Watkins <amaranth@ubuntu.com>2012-04-24 18:59:55 -0500
committerEvilSeph <evilseph@gmail.com>2012-04-24 22:28:26 -0400
commit8f1fc96da0f9c08a585797947994c162389bbaf6 (patch)
treea943ed316efa4ddb438a48de3e07abc271ecbdb8 /src
parent73ae279e8d7d463b066a3b2fe68f82f9b45a93e9 (diff)
downloadcraftbukkit-8f1fc96da0f9c08a585797947994c162389bbaf6.tar
craftbukkit-8f1fc96da0f9c08a585797947994c162389bbaf6.tar.gz
craftbukkit-8f1fc96da0f9c08a585797947994c162389bbaf6.tar.lz
craftbukkit-8f1fc96da0f9c08a585797947994c162389bbaf6.tar.xz
craftbukkit-8f1fc96da0f9c08a585797947994c162389bbaf6.zip
Fixed per-world spawn limits. I have no idea how we missed this.
Diffstat (limited to 'src')
-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) {