Update SmeltingManager.java

Double smelting chance calculation while FluxMining success.
This commit is contained in:
matix931 2013-05-01 19:31:00 +03:00
parent 3322677d32
commit f6fa76cea4

View File

@ -65,8 +65,17 @@ public class SmeltingManager extends SkillManager {
Misc.dropItem(location, item); Misc.dropItem(location, item);
if (Permissions.doubleDrops(player, skill) && SkillUtils.activationSuccessful(getSkillLevel(), getActivationChance(), Mining.doubleDropsMaxChance, Mining.doubleDropsMaxLevel)) { if (Permissions.doubleDrops(player, skill)) {
if (SkillUtils.activationSuccessful(getSkillLevel(), getActivationChance(), Mining.doubleDropsMaxChance, Mining.doubleDropsMaxLevel)) {
Misc.dropItem(location, item); 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); blockState.setRawData((byte) 0x0);