From b2f83676cfabfff8c9682f10ea66cecc3a72e71f Mon Sep 17 00:00:00 2001 From: Spigot Date: Thu, 17 Jan 2013 16:25:19 +1100 Subject: [PATCH] Cant forget to fix mushroom growth By: md_5 --- .../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 822bf11e27..ac74a971a0 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;