Added RandomHandler#setActive and enabled all randoms by default

This commit is contained in:
JKetelaar
2014-12-26 12:10:07 +01:00
parent 10080277f8
commit a04aadf5fd
3 changed files with 11 additions and 0 deletions
@@ -37,6 +37,15 @@ public class RandomHandler {
}
}
randoms.add(random);
setActive(random);
}
/**
* Adds a random to the active randoms
* @param random
*/
public void setActive(Random random){
this.activeRandoms.add(random);
}
/**