Spawn monsters without prematurely exiting. Fixes BUKKIT-3425

By using return 0, we exit the loop prematurely preventing other
creature types from being spawned if one type is set to 0. By using
continue we move on to the other types and allow them to spawn
properly.
This commit is contained in:
cexikitin authored and feildmaster committed 2013-01-14 19:24:08 -06:00
1 parent dd7ba4a258
commit 8bc9e712e1
1 file changed
+1 -1
@@ -86,7 +86,7 @@ public final class SpawnerCreature {
}
if (limit == 0) {
return 0;
continue;
}
// CraftBukkit end