From f6fa76cea41a597d3f6054d84d0dd5a4e5818255 Mon Sep 17 00:00:00 2001 From: matix931 Date: Wed, 1 May 2013 19:31:00 +0300 Subject: [PATCH] Update SmeltingManager.java Double smelting chance calculation while FluxMining success. --- .../nossr50/skills/smelting/SmeltingManager.java | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/skills/smelting/SmeltingManager.java b/src/main/java/com/gmail/nossr50/skills/smelting/SmeltingManager.java index d3b91dad6..bb1a0a970 100644 --- a/src/main/java/com/gmail/nossr50/skills/smelting/SmeltingManager.java +++ b/src/main/java/com/gmail/nossr50/skills/smelting/SmeltingManager.java @@ -65,8 +65,17 @@ public class SmeltingManager extends SkillManager { Misc.dropItem(location, item); - if (Permissions.doubleDrops(player, skill) && SkillUtils.activationSuccessful(getSkillLevel(), getActivationChance(), Mining.doubleDropsMaxChance, Mining.doubleDropsMaxLevel)) { - Misc.dropItem(location, item); + if (Permissions.doubleDrops(player, skill)) { + if (SkillUtils.activationSuccessful(getSkillLevel(), getActivationChance(), Mining.doubleDropsMaxChance, Mining.doubleDropsMaxLevel)) { + Misc.dropItem(location, item); + if(SkillUtils.activationSuccessful(getSkillLevel(), getActivationChance(), Smelting.secondSmeltMaxChance, Smelting.secondSmeltMaxLevel)) { + Misc.dropItem(location, item); + } + } + + if (SkillUtils.activationSuccessful(getSkillLevel(), getActivationChance(), Smelting.secondSmeltMaxChance, Smelting.secondSmeltMaxLevel)) { + Misc.dropItem(location, item); + } } blockState.setRawData((byte) 0x0);