mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-07-09 17:14:44 +02:00
Update SmeltingManager.java
Double smelting chance calculation while FluxMining success.
This commit is contained in:
@ -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);
|
||||||
|
Reference in New Issue
Block a user