Make syncMobs() public and Javadoc it

This commit is contained in:
Tim Ekl 2012-01-06 20:53:21 -05:00
parent 1af30dad1d
commit b006a458db
1 changed files with 6 additions and 1 deletions

View File

@ -393,7 +393,12 @@ public class MVWorld implements MultiverseWorld {
return false;
}
private void syncMobs() {
/**
* Ensure that the value of the animals and monsters config
* properties are set in accordance with the current animals
* and monsters in the world, respectively.
*/
public void syncMobs() {
if (this.getAnimalList().isEmpty()) {
this.world.setSpawnFlags(this.world.getAllowMonsters(), this.getKnownProperty("animals", Boolean.class).getValue());