From 8f1a97d45e4e74047fa1becda879770d8bb19e5b Mon Sep 17 00:00:00 2001 From: Qowyn Date: Sat, 6 Sep 2014 21:46:40 +0200 Subject: [PATCH] Fixes #118, skip chance check if fortune > 3 --- .../mods/natura/blocks/trees/NLeavesNocolor.java | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/main/java/mods/natura/blocks/trees/NLeavesNocolor.java b/src/main/java/mods/natura/blocks/trees/NLeavesNocolor.java index e20c01f1..a0be1bc2 100644 --- a/src/main/java/mods/natura/blocks/trees/NLeavesNocolor.java +++ b/src/main/java/mods/natura/blocks/trees/NLeavesNocolor.java @@ -81,8 +81,16 @@ public Item getItemDropped (int meta, Random random, int fortune) public ArrayList getDrops (World world, int x, int y, int z, int metadata, int fortune) { ArrayList ret = super.getDrops(world, x, y, z, metadata, fortune); - if (metadata % 4 == 2 && Natura.random.nextInt(40 - fortune * 10) == 0) - ret.add(new ItemStack(Items.redstone)); + + if (metadata % 4 == 2) + { + if (fortune > 3 || Natura.random.nextInt(40 - fortune * 10) == 0) + { + ret.add(new ItemStack(Items.redstone)); + } + + } + return ret; }