From e7e408f3a80410d1e5845ecc6be964b77cc6db7f Mon Sep 17 00:00:00 2001 From: md_5 Date: Thu, 17 Jan 2013 16:25:19 +1100 Subject: [PATCH] Cant forget to fix mushroom growth --- .../0010-Fix-various-crop-growth-modifier-formula-issues.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CraftBukkit-Patches/0010-Fix-various-crop-growth-modifier-formula-issues.patch b/CraftBukkit-Patches/0010-Fix-various-crop-growth-modifier-formula-issues.patch index 822bf11e2..ac74a971a 100644 --- a/CraftBukkit-Patches/0010-Fix-various-crop-growth-modifier-formula-issues.patch +++ b/CraftBukkit-Patches/0010-Fix-various-crop-growth-modifier-formula-issues.patch @@ -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;