Cant forget to fix mushroom growth

This commit is contained in:
md_5 2013-01-17 16:25:19 +11:00
parent a9389ed3fb
commit e7e408f3a8
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ index 8fa8302..f66ea7a 100644
public void b(World world, int i, int j, int k, Random random) {
- if (random.nextInt((int) (world.growthOdds * 100 / world.getWorld().mushroomGrowthModifier * 25)) == 0) { // Spigot
+ if (random.nextInt((int) (world.growthOdds / world.getWorld().mushroomGrowthModifier * 25)) == 0) { // Spigot
+ if (random.nextInt(Math.max(1, (int) world.growthOdds / world.getWorld().mushroomGrowthModifier * 25)) == 0) { // Spigot
byte b0 = 4;
int l = 5;