Change from cast to Math.ceil in the nextInt so that with >= 2048 bees it doesn't end up with rand.nextInt(0) causing an exception about it needing to be positive.
This was found as an issue in Heavens of Sorcery where we are overriding maxium stack size (to 8192 in the case of the bees).
Change from cast to Math.ceil in the nextInt so that with >= 2048 bees it doesn't end up with rand.nextInt(0) causing an exception about it needing to be positive. This was found as an issue in Heavens of Sorcery where we are overriding maxium stack size (to 8192 in the case of the bees).