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 2013-01-13 14:58:34 -05:00 committed by feildmaster
parent dd7ba4a258
commit 8bc9e712e1

View file

@ -86,7 +86,7 @@ public final class SpawnerCreature {
}
if (limit == 0) {
return 0;
continue;
}
// CraftBukkit end