cadaverous-eris / Rustic

A medieval themed Minecraft mod based around decoration, exploration, and agriculture
68 stars 35 forks source link

Update TileEntityApiary.java #297

Closed ewanm89 closed 4 years ago

ewanm89 commented 4 years ago

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).