mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-20 15:44:49 +01:00
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:
parent
dd7ba4a258
commit
8bc9e712e1
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ public final class SpawnerCreature {
|
|||
}
|
||||
|
||||
if (limit == 0) {
|
||||
return 0;
|
||||
continue;
|
||||
}
|
||||
// CraftBukkit end
|
||||
|
||||
|
|
Loading…
Reference in a new issue